A bot that can assign roles based on Covalent website data
- Install Docker
- Copy and update settings in
.env.example
- Execute
docker-compose up -d
- Install requirements from
requirements.txt
for>= Python 3.6
- Copy and update settings in
config.example.py
- Init database tables via
aerich upgrade
- We will need to create account and get
Bearer token
and save it toconfig.py
- Start bot via
python bot.py
or via supervisord or systemd - Add a bot to the server with administrator permissions
- to prevent spamming existing users about their promotion during the first run set
DO_SEND_NOTIFICATIONS
toFalse
, give it a couple of minutes to create necessary rows in the database and then restart the bot withDO_SEND_NOTIFICATIONS
set toTrue
- bot watches Covalent website for CQT points
- when a user reaches the threshold it will be promoted to the Apprentice/Valiant/Master role
- the bot will also send a notification to the channel to greet the user