CnCNet QM Discord Bot, in python
- Create file named
.env
insrc
directory - Add discord application id
DISCORD_CLIENT_SECRET=[token]
- Run
docker-compose build
anddocker-compose up
pip install discord.py
pip install apiclient
pip install -U python-dotenv
!maps {ladder}
return the current QM maps of a given ladder
- 60 second interval: Send current QM player information to
qm-bot
channel - Every 8 hours: Update discord users QM role according to their current QM rank
debug commands:
- find running python executions
ps -e | grep 'python3'
- execute bot.py
nohup python3 -u bot.py &