Built-in Functions
From SmartBots Developers Docs
The basic built-in functions do not relate to bot functionality. Instead, they allow writing flexible scripts.
setTimeout(function() { console.log("Timer has fired!"); }, 3000);
Commands reference
Command | Description | |
---|---|---|
Program flow | ||
exit | Bot Playground/Built-in Functions/exit | |
Timer control | Standard timer control routines of JavaScript: setTimeout, setInterval etc. | |
Persistent storage | ||
localStorage.get | Restores a string value from a persistent storage. | |
localStorage.set | Puts a string value into a persistent storage. | |
HTTP | ||
http.get | Retrieves data from a HTTP source. | |
http.post | Retrieves data from a HTTP source using the POST method. | |
Debug | ||
console.log | Logs data to the runtime log. | |
console.error | Logs data to the error log.
|