Difference between revisions of "Bot Playground"

From SmartBots Developers Docs
Jump to: navigation, search
Line 17: Line 17:
 
This two-way communication is tied directly into javascript program routines:
 
This two-way communication is tied directly into javascript program routines:
  
* bot commands are functions you call
+
* [[/Commands|bot commands]] are functions you call
* events are callback functions you specify
+
* [[/Events|events]] are callback functions you specify
  
 
Refer to [[Playground Examples]] page for more info.
 
Refer to [[Playground Examples]] page for more info.

Revision as of 14:19, 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:

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.