Difference between revisions of "Bot Playground"
(Created page with "SmartBots Bot Playground is a dedicated sandbox to run your own programs which control your bot. This section is still in development! == Language == Playground runs program...") |
|||
Line 20: | Line 20: | ||
* events are callback functions you specify | * events are callback functions you specify | ||
− | Refer to [[ | + | Refer to [[Playground Examples]] page for more info. |
== Bug Hunter program == | == Bug Hunter program == | ||
Playground scripts run in their own sandboxes. Well, they are supposed to be sandboxes. As soon as Playground get launched, we will start a Bug Hunter program so you can try breaching the limits for a reward. | Playground scripts run in their own sandboxes. Well, they are supposed to be sandboxes. As soon as Playground get launched, we will start a Bug Hunter program so you can try breaching the limits for a reward. |
Revision as of 09:50, 28 June 2016
SmartBots Bot Playground is a dedicated sandbox to run your own programs which control your bot. This section is still in development!
Language
Playground runs programs written JavaScript. The pure javascript: with callbacks, functions, arrays and objects. The underlying javascript engine is NodeJS (V8).
There are some limitations applied yet:
- We do not support ECMAScript 6
- import/export is not supported yet
- you can't include one script into another (yet)
Interacting your bot
Your program sends commands to the bot. Events come from the bots to your program.
This two-way communication is tied directly into javascript program routines:
- bot commands are functions you call
- events are callback functions you specify
Refer to Playground Examples page for more info.
Bug Hunter program
Playground scripts run in their own sandboxes. Well, they are supposed to be sandboxes. As soon as Playground get launched, we will start a Bug Hunter program so you can try breaching the limits for a reward.