mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-07 18:02:31 -05:00
Hotfix for trivia
In case it runs out of questions in the current list
This commit is contained in:
3
red.py
3
red.py
@@ -419,6 +419,9 @@ class Trivia():
|
||||
if score == settings["TRIVIA_MAX_SCORE"]:
|
||||
await self.endGame()
|
||||
return True
|
||||
if self.questionList == []:
|
||||
await self.endGame()
|
||||
return True
|
||||
self.currentQ = choice(self.questionList)
|
||||
self.questionList.remove(self.currentQ)
|
||||
self.status = "waiting for answer"
|
||||
|
||||
Reference in New Issue
Block a user