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 day
30 seconds
3 hours
- Create a discord server.
- Go to https://discord.com/developers and create a new application
- Enable
SERVER MEMBERS INTENT
inSettings
->Bot
- Enable the
bot
scope inOAuth2
->SCOPES
, enableBOT PERMISSIONS
->Administrator
and then navigate to the URL which reveals itself and add the bot to your server - Navigate back to applications, copy the bot
TOKEN
fromSETTINGS
->Bot
and paste it into your.env
file - Create a
administrator
role on your server and fill its ID into theADMINISTRATOR_ROLE_ID
environment 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.