Skip to content

Latest commit

 

History

History
567 lines (479 loc) · 37.4 KB

File metadata and controls

567 lines (479 loc) · 37.4 KB

discord-typescript-bot

Configuration

In src/config/ add a config.ts file that looks like this:

export let config = {
  "token": "djigoj24gijo-dgj9wdfj",  // Discord bot token.
  "prefix" : "./" // Command prefix.
};

Building the bot

npm install # Install deps.
npm run-script build # Build the code.

Running the bot

npm run-script build && npm run-script run

Testing the bot

TODO: Make this work.

npm run-script test