Bot Playground
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 Playgroups 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.