Difference between revisions of "Bot Playground"

From SmartBots Developers Docs
Jump to: navigation, search
 
(One intermediate revision by one other user not shown)
Line 6: Line 6:
 
== Controlling bots with JavaScript==
 
== Controlling bots with JavaScript==
  
[[Image:Bots Playground screenshot.png|link=|center]]
+
[[Image:Bots Playground screenshot-2.png|link=|center|800px]]
[[Image:Bots Playground screenshot-2.png|link=|center|800]]
+
 
Playground runs programs written JavaScript. The pure javascript: with callbacks, functions, arrays and objects. The underlying javascript engine is NodeJS.
 
Playground runs programs written JavaScript. The pure javascript: with callbacks, functions, arrays and objects. The underlying javascript engine is NodeJS.
  

Latest revision as of 20:21, 19 January 2024

SmartBots Bots Playground is a JavaScript sandbox to run your own programs to control your Second Life bot.

The Bots Playground is available here: play.mysmartbots.com/

Controlling bots with JavaScript

Bots Playground screenshot-2.png

Playground runs programs written JavaScript. The pure javascript: with callbacks, functions, arrays and objects. The underlying javascript engine is NodeJS.

There are some limitations applied yet:

  • We do not support ECMAScript 6
  • import/export is disabled
  • you can't include one script into another (yet)

Interacting with your bot

Your program runs in a sandbox and 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 Examples page for more info.

Read more