Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 1.15 KB

readme.md

File metadata and controls

43 lines (28 loc) · 1.15 KB

MPP Bot

A Deno chatbot for MPP

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!

Installing Deno

To install Deno, see the Deno documentation. If you already have Deno installed, you can skip this step.

Setting up the bot

What to do:

  1. Create a bconfig.json file

To use another name for the config file, see the index.ts file.

  1. 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.

  1. 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!