# Bots Playground

![](https://nyc3.digitaloceanspaces.com/smartbots-docs/uploads/20adbcf8-a916-46eb-b77b-ad6944665550/53d8e355-d9ec-4d8b-b0ab-13010020d925/image.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=DO801JV4MUMY3YAEJCWC%2F20261113%2Fnyc3%2Fs3%2Faws4_request&X-Amz-Date=20261113T141500Z&X-Amz-Expires=86400&X-Amz-Signature=773956ea3fbefa9e0ae93d2f148a791ad268e833732c64cad7b3c4372d82353f&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject " =1536x1024")

SmartBots Bots Playground is a JavaScript sandbox to run your own programs to control your SmartBot.

The Bots Playground is available here: [play.mysmartbots.com](https://https://)

## Controlling bots with JavaScript

 ![](https://nyc3.digitaloceanspaces.com/smartbots-docs/uploads/20adbcf8-a916-46eb-b77b-ad6944665550/8c1eef79-b81a-400f-9bb4-0a4157b6947c/image.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=DO801JV4MUMY3YAEJCWC%2F20261113%2Fnyc3%2Fs3%2Faws4_request&X-Amz-Date=20261113T141500Z&X-Amz-Expires=86400&X-Amz-Signature=aeeb6faaadac3f54d1e9618bdf32fc6051a82a84e274123629fe14d9a7a6fb7c&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject " =2876x1334")

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:

* Bot commands are functions you call
* Events are callback functions you specify

Refer to the Examples page for more info.

## Read more

* Playground FAQ
* Bug Hunter program
* Create and sell Playground scripts

---

**Documents**

- [Updates & Changes](https://www.mysmartbots.com/docs/s/dev/doc/updates-changes-2bgh9ObF20)
- [Commands](https://www.mysmartbots.com/docs/s/dev/doc/commands-JxmScXyBJX)
- [Events](https://www.mysmartbots.com/docs/s/dev/doc/events-MlH5yfrvaa)
- [Built-in Functions](https://www.mysmartbots.com/docs/s/dev/doc/built-in-functions-V5QNzJx2HJ)
- [AI](https://www.mysmartbots.com/docs/s/dev/doc/ai-ZdXI6JZqHH)
- [Development Tools](https://www.mysmartbots.com/docs/s/dev/doc/development-tools-H4taatvrAy)
- [Logging](https://www.mysmartbots.com/docs/s/dev/doc/logging-zXu3NKB5Vt)
- [Callbacks & return values](https://www.mysmartbots.com/docs/s/dev/doc/callbacks-return-values-7HBKfBzC63)
- [Selling scripts in Store](https://www.mysmartbots.com/docs/s/dev/doc/selling-scripts-in-store-sjdaRs6vbq)
- [Async and await](https://www.mysmartbots.com/docs/s/dev/doc/async-and-await-yA01SI6qTs)
- [FAQ](https://www.mysmartbots.com/docs/s/dev/doc/faq-RTcbyJh7Pi)
- [Examples](https://www.mysmartbots.com/docs/s/dev/doc/examples-PCNl1LoI3V)
- [Backing up scripts](https://www.mysmartbots.com/docs/s/dev/doc/backing-up-scripts-JN5ZhIns68)
- [Bug Hunter program](https://www.mysmartbots.com/docs/s/dev/doc/bug-hunter-program-lidCa9CAUg)