mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-09 20:58:54 -05:00
Prevents error in case of inexistant trivia list
This commit is contained in:
parent
72fa9c2166
commit
4767666ad3
@ -176,7 +176,9 @@ class TriviaSession():
|
||||
await trivia_manager.bot.say(t)
|
||||
|
||||
async def check_answer(self, message):
|
||||
if message.author.id != trivia_manager.bot.user.id:
|
||||
self.timeout = time.perf_counter()
|
||||
if self.current_q is not None:
|
||||
for answer in self.current_q["ANSWERS"]:
|
||||
if answer in message.content.lower():
|
||||
self.current_q["ANSWERS"] = []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user