The Mustang Math's Community Server Bot. Make sure to check out a new branch in the GitHub and commit all code to that branch, create pull requests when you're ready for a quality check.
After completing steps 1 and 2 below, make a new version in changelog.md, adding 0.1 to the prior version for patches,
modifications, or minor updates. Add 1 to the prior version for brand new features, overhauls, or other large updates.
Keep notes of all your contributions there.
Be diligent with comments in your code: the more helpful/descriptive comments you write, the better. Don't forget to
export all new commands you make and add them to commandList.ts in order for step 4 to work properly.
- Clone the repo into a folder on your computer.
- Run
npm installto install the packages. - Create a new file called
config.json. In it, put an object ({}) with:"token": "PUT YOUR TOKEN HERE", replacing the value with the bot token you want to use."clientId": "PUT CLIENT ID HERE", replacing the value with the bot client ID you want to use.- (optional)
"publishGuild": "PUT GUILD HERE": allows for simpler publishing of commands to guild.
- Run
npm run publishto publish slash commands. (Read the output and then run again with proper arguments.) - Run
npm run startto start up your bot.
Note: Set up your own test bot and testing server, use that token + client ID when you locally run / debug code.