What does this bot do? It's the very early version of JSPlayground!
You can execute various JS commands using this bot!
Here is a step-by-step tutorial. It is pretty easy!
To install Deno, see the Deno documentation. If you already have Deno installed, you can skip this step.
What to do:
- Create a bconfig.json file
To use another name for the config file, see the index.ts file.
- Set up the contents for the config file
The contents for the .json file look like this:
{
"token": "aaaaaaaaaaaaaaaaaaaaaaaa.ffffffff-ffff-ffff-ffff-ffffffffffff",
"name": "JSPlayground",
"color": "#adadad",
"channel": "js room",
"uri": "wss://mppclone.com:8443"
}
The "uri"
member of the config is the domain for WebSocket Secure. If you don't know anything about that, you can ignore this.
- Run the bot
Make sure your config file is valid. If it is valid, you can proceed.
Now, run deno run --allow-net --allow-write index.ts
.
And that's it!
Now enjoy your bot!