An efficient, multi-purpose Discord bot that manages The City Project server.
- Download and install Node.js LTS.
- Clone this repository.
- Create a copy of
.env.exampleand rename the copy to.env.- Populate the values with a valid Discord bot token and application ID.
- Run
npm install --productionin the terminal. - Run
npm deployandnpm startin the terminal. The bot will be online after a brief delay.- The
deployscript should only be used once and when new commands has been added.
- The
It is recommended that you follow the principle of least privilege, where the bot should only have certain permissions needed to complete its tasks. This means avoiding the "Administrator" permission and instead, giving individuals based on what commands it has.
At the moment, it will require these permissions to be enabled:
- Kick Members
- Ban Members
- Timeout Members
- Send Messages
- Send Messages in Thread
- Embed Links
- Attach Files
- Add Reactions
- Manage Messages (can be set on a per-channel basis)
- Manage Threads
- Mute Members
- Deafen Members