Skip to content

CnCNet/cncnet-ladder-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cncnet-qm-bot

CnCNet QM Discord Bot, in python


Developer notes:

  • Create file named .env in src directory
  • Add discord application id DISCORD_CLIENT_SECRET=[token]
  • Run docker-compose build and docker-compose up
  • Can test locally from project root with: python -m src.adhoc.main

Pip Installs:

pip install discord.py
pip install apiclient
pip install -U python-dotenv

Bot Commands

  • !maps {ladder} return the current QM maps of a given ladder

Bot Scheduled Commands

  • 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 &

About

bot services that leverage APIs from https://github.com/CnCNet/cncnet-ladder-api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •