Made quiz ready for release

This commit is contained in:
2020-11-10 17:53:41 +01:00
parent 51423dedf0
commit 86a8ce45e3
2 changed files with 67 additions and 4 deletions

View File

@@ -39,8 +39,8 @@ class QuizQuestions(commands.Cog):
quizdb = QuizDB()
q_id = quizdb.add_question(q, a, reward)
await ctx.send("question id: " + str(q_id))
# except:
# await ctx.send("Something went wrong")
except:
await ctx.send("Something went wrong")
finally:
quizdb.close()
@@ -75,8 +75,8 @@ class QuizQuestions(commands.Cog):
class Quiz(commands.Cog):
def __init__(self, client):
self.client = client
self.interval = (5, 10)
#self.interval = (8*60, 30*60)
#self.interval = (5, 10)
self.interval = (8*60, 30*60)
self.auto = False
@commands.command(name="quiz")