aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/trivia_quiz.py
diff options
context:
space:
mode:
authorGravatar Objectivitix <[email protected]>2021-05-09 21:23:01 -0300
committerGravatar GitHub <[email protected]>2021-05-09 21:23:01 -0300
commit119f08411eeb9ec205b4678959feb270ff76548c (patch)
tree806b1f54ba0d2b0a6445b0779adabedfcf8638ad /bot/exts/evergreen/trivia_quiz.py
parentreduce default no of questions to 7, add actual content to "Remaining questio... (diff)
fix bug where remaining questions go up instead of down
Diffstat (limited to 'bot/exts/evergreen/trivia_quiz.py')
-rw-r--r--bot/exts/evergreen/trivia_quiz.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/evergreen/trivia_quiz.py b/bot/exts/evergreen/trivia_quiz.py
index 8d1a27ba..5ec37b25 100644
--- a/bot/exts/evergreen/trivia_quiz.py
+++ b/bot/exts/evergreen/trivia_quiz.py
@@ -366,7 +366,7 @@ class TriviaQuiz(commands.Cog):
response = random.choice(WRONG_ANS_RESPONSE)
await ctx.send(response)
- await self.send_answer(ctx.channel, answers, question_dict, len(done_question))
+ await self.send_answer(ctx.channel, answers, question_dict, self.question_limit - len(done_question))
await asyncio.sleep(1)
hint_no = 0 # init hint_no = 0 so that 2 hints/time alerts can be sent for the new question.
@@ -393,7 +393,7 @@ class TriviaQuiz(commands.Cog):
await ctx.send(f"{msg.author.mention} got the correct answer :tada: {points} points!")
- await self.send_answer(ctx.channel, answers, question_dict, len(done_question))
+ await self.send_answer(ctx.channel, answers, question_dict, self.question_limit - len(done_question))
await self.send_score(ctx.channel, self.game_player_scores[ctx.channel.id])
await asyncio.sleep(2)