We're using Python 3.9.
Install pipenv.
Execute:
pipenv install
Setup a PostgreSQL database server locally. Create a database for the Discord bot. Copy yoyo-local.ini.template to yoyo-local.ini:
cp yoyo-local.ini.template yoyo-local.ini
Set the database variable in that file and run migrations:
yoyo apply
Copy .env.template:
cp .env.template .env
Fill in the missing values. Don't forget db USER and PASSWORD.
The *_OLDER_THAN variables use the PostgreSQL interval
type. E.g:
1 day30 seconds3 hours
- Create a discord server.
- Go to https://discord.com/developers and create a new application
- Enable
SERVER MEMBERS INTENTinSettings->Bot - Enable the
botscope inOAuth2->SCOPES, enableBOT PERMISSIONS->Administratorand then navigate to the URL which reveals itself and add the bot to your server - Navigate back to applications, copy the bot
TOKENfromSETTINGS->Botand paste it into your.envfile - Create a
administratorrole on your server and fill its ID into theADMINISTRATOR_ROLE_IDenvironment variable
That's it. You can now start the bot by running:
python src/main.py
We will gladly accept contributions, but before you start working on something please read CONTRIBUTING.md first.