DictatorBot2 is a continuation of DictatorBot in TypeScript.
All of the following steps assume you are cloning from master and building the TypeScript code into JavaScript in the output folder dist
.
- Run
yarn install
if this is your first time building - Run
yarn build
- Copy the assets folder from
src
intodist
. - Create a new file called
config.yml
indist
. See Configuration for information about setting the appropriate values in this file.
- Run
node .
in thedist
directory - Optionally, instead run
node . --force-sync
in order to push slash commands to the Discord API endpoint. You should do this if you are running the bot for the first time or if you have modified the source code to change command information.