Built-in Functions
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); List of functions
Script Details | |
Read-only property reflecting running script name. | |
Read-only property reflecting the script release version (for store scripts). | |
Program Flow | |
Ends the execution of the program. | |
Pauses a program execution. | |
Standard timer control routines of JavaScript: setTimeout, setInterval etc. | |
Persistent Bot Storage | |
Restores a string value from a persistent storage. | |
Puts a string value into a persistent storage. | |
Returns the list of the available keys in a persistent storage. | |
Adds the event callback on localStorage. | |
User Settings | |
Allows accessing the settings specified by the script user. | |
HTTP | |
Retrieves data from a HTTP source. | |
Retrieves data from a HTTP source using the POST method. | |
Allocates a new, per-run webhook URL and token for the current script instance. | |
Debug | |
Logs data to the runtime log. | |
Logs data to the error log. | |
Logs data to the error log. | |
Logs data to the error log if the assertion is false. | |