- Python 3.12+
- Discord Account
- Bot Account (see below for details on how to setup)
- Docker and Docker Compose
- Go to discord and make an application for bot
- In application page click OAuth -> URL Generator and check the box for
bot
- Copy the link generated and paste into web browser to invite bot to your discord server
- Go to bot page in discord, and reset your token (make sure to copy and paste this somewhere or you will have to reset token again)
- Use virtualenv to setup a python 3.12 environment or if you want you can use native python 3.12 from system
- Run
pip install -r requirements.txt
from this directory to install dependencies
- Create a
.env
file in this directory and set the following variables
DISCORD_BOT_TOKEN=<YOUR TOKEN FROM BEFORE HERE>
MOD_AUDIT_CHANNEL_ID=<Moderation Audit Channel ID here>
ROLE_MESSAGE_ID=<Message to react to for role assignment here>
MODERATOR_ROLES=<roles here separated by `,` for example `a,b,c`>
LOGURU_LEVEL=<LOG LEVEL>
- Source the env file you created and run the
app.py