diff options
author | 2021-05-09 21:25:40 -0300 | |
---|---|---|
committer | 2021-05-09 21:25:40 -0300 | |
commit | f22cebc139e03cd965e5b1d470795126d02250fd (patch) | |
tree | 844a824935dd6492861dc296ef4eb7fc8deda329 /bot/exts/evergreen/trivia_quiz.py | |
parent | fix bug where remaining questions go up instead of down (diff) |
increase readability, fix lint failure
Diffstat (limited to 'bot/exts/evergreen/trivia_quiz.py')
-rw-r--r-- | bot/exts/evergreen/trivia_quiz.py | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/bot/exts/evergreen/trivia_quiz.py b/bot/exts/evergreen/trivia_quiz.py index 5ec37b25..43d786bc 100644 --- a/bot/exts/evergreen/trivia_quiz.py +++ b/bot/exts/evergreen/trivia_quiz.py @@ -366,7 +366,13 @@ class TriviaQuiz(commands.Cog): response = random.choice(WRONG_ANS_RESPONSE) await ctx.send(response) - await self.send_answer(ctx.channel, answers, question_dict, self.question_limit - 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 +399,12 @@ 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, self.question_limit - 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) |