1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Do not delete invoking for trivia

This commit is contained in:
Steffo 2019-10-25 14:02:57 +02:00
parent 444d72ec94
commit 4081a4ab6d

View file

@ -36,7 +36,6 @@ class TriviaCommand(Command):
if self._question_lock: if self._question_lock:
raise CommandError("C'è già un'altra domanda attiva!") raise CommandError("C'è già un'altra domanda attiva!")
self._question_lock = True self._question_lock = True
await data.delete_invoking()
# Fetch the question # Fetch the question
async with aiohttp.ClientSession() as session: async with aiohttp.ClientSession() as session:
async with session.get("https://opentdb.com/api.php?amount=1") as response: async with session.get("https://opentdb.com/api.php?amount=1") as response: