From 119f08411eeb9ec205b4678959feb270ff76548c Mon Sep 17 00:00:00 2001 From: Objectivitix <79152594+Objectivitix@users.noreply.github.com> Date: Sun, 9 May 2021 21:23:01 -0300 Subject: fix bug where remaining questions go up instead of down --- bot/exts/evergreen/trivia_quiz.py | 4 ++-- 1 file 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) -- cgit v1.2.3