0.1.2 • Published 5 years ago
genesis-moderation-bot v0.1.2
Genesis Moderation Bot
Development Scripts
Install Typescript globally:
npm i typescript -gRestart the terminal.
Install dependencies:
npm iCreate .env file in project root:
touch .envDefine TOKEN in env
TOKEN='TOKEN_GOES_HERE'| Script | Description |
|---|---|
npm start | Start the bot |
npm run tsc | Run the typescript compiler in watch mode |
npm run compile | Compiles the bot |
Discord Commands
| Command | Description |
|---|---|
help | Shows the help menu |
delad <MessageID> <Reason> | Delete an advertisement |
Notes
- Avoid using
:anytype. - Stick to the established code model
- Prettier config file is included
Design choices when coding
- Use a tabwidth of 2
- Avoid semicolons when possible
- Use single quotes over double quotes when possible
- Always include a trailing comma