Browse Source

stopped join leave reactions showing up in solo games

stopped join leave reactions showing up in solo games
tags/v2.2.1
Roxie Gibson 5 years ago
parent
commit
5e4831d09e
2 changed files with 7 additions and 5 deletions
  1. +2
    -1
      CHANGELOG.md
  2. +5
    -4
      roxbot/cogs/trivia.py

+ 2
- 1
CHANGELOG.md View File

@@ -3,10 +3,11 @@
### Changelog

- fixed bug where single player trivia games broke at the end
- fixed join leave reactions in a trivia game showing for a solo game

---

### Update Notes
#### Update Notes

To update, just `git pull` inside of the working directory. Make sure to update dependencies using `python3 -m pip install -Ur requirements.txt` in your venv before you run the bot.


+ 5
- 4
roxbot/cogs/trivia.py View File

@@ -303,10 +303,11 @@ class TriviaGame:
sleep = 20

self.start_message = await self.ctx.send(embed=embed)
await self.start_message.add_reaction(self.correct_emoji)
await self.start_message.add_reaction(self.incorrect_emoji)
await asyncio.sleep(sleep)
await self.start_message.clear_reactions()
if not self.solo:
await self.start_message.add_reaction(self.correct_emoji)
await self.start_message.add_reaction(self.incorrect_emoji)
await asyncio.sleep(sleep)
await self.start_message.clear_reactions()

# Checks if there is any players to play the game still
if not self.leaderboard.players:

Loading…
Cancel
Save