start-again / spookyBot

🎃 A spooky Discord bot
MIT License
9 stars 12 forks source link

Feature/scare queue #46

Open ALMerrill opened 4 years ago

ALMerrill commented 4 years ago

Closes #34

This allows multiple scare commands to be sent while a scare command is currently being processed.

If a scare command is being processed, other commands that come in get put in a queue, and the first event handler keeps running until the queue is empty.

Note: the waitToRunCommand function is there, because the bot was having issues leaving the voice channel and entering again immediately, so I put that in to buffer it each time that happens.

illusi0nary commented 4 years ago

We have merge conflicts here because of the docker deployment.

Please use git rebase main or git merge main on your branch in order to make it mergeable :-)

illusi0nary commented 4 years ago

We have merge conflicts here because of the docker deployment.

Please use git rebase main or git merge main on your branch in order to make it mergeable :-)