Bot Playground

From SmartBots Developers Docs
Revision as of 15:08, 28 June 2016 by Gg (Talk | contribs)

Jump to: navigation, search

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:

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.