samuelsogbesan / leetbot

LeetCode Question Bot for Discord.
Apache License 2.0
1 stars 0 forks source link

Reflect Queue Updates In Database 🧶 #9

Closed samuelsogbesan closed 3 years ago

samuelsogbesan commented 3 years ago

Safely call the methods responsible for updating the queue in the database when people join and leave their local server queue.

removePlayerFromQueue removes a player from the queue. Used when the user leaves their local server queue. offerPlayerToQueue adds a player to the queue. Used when the user joins their local server queue.

A future PR will need to dynamically change the target queue, since it is currently hard-coded.