Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 1.17 KB

README.md

File metadata and controls

29 lines (21 loc) · 1.17 KB

SES Discord Bot

Welcome to SES-bot!

You can run JavaScript commands with the "$" prefix, and they are run in your own personal SES container! You can't assign variables in these commands, but you have a "my" object you can hang variables on. You can also add objects to your "share" object, to make them available to everyone. You can find the objects others have shared in your "others" object, by their ID. A member can have SES-bot print their ID by calling "$id".

Running your own

Create a Discord App and then use its settings to set up config.json to look like this:

{
  "appKey": "YOUR_APP_KEY",
  "appToken": "YOUR_APP_TOKEN",
  "publicKey": "YOUR_PUBLIC_KEY"
}

Then run yarn and yarn start. To resume after a crash, maybe use nodemon index.js.

Moving between machines

As long as you move your config.json and log.txt file to the root of this repository, you can resume your machine state on another machine, in another folder, or whatever.

To invite this bot to a discord server, have the server admin click a link in the form of https://discord.com/oauth2/authorize?client_id=${APP_KEY}&scope=bot