diff options
author | 2021-05-10 09:52:59 -0300 | |
---|---|---|
committer | 2021-05-10 09:52:59 -0300 | |
commit | 5f9242749db72912abc7c52a8e1da90ca09c6848 (patch) | |
tree | 674e3dfb9ddc9d1c091a281f35e0890257259c27 | |
parent | remove redundant parentheses (diff) |
apply some changes suggested by Shivansh-007
made send_score docstring more precise, added a comment for better understanding, and changed an error embed description
-rw-r--r-- | bot/exts/evergreen/trivia_quiz.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bot/exts/evergreen/trivia_quiz.py b/bot/exts/evergreen/trivia_quiz.py index 045fedbf..2620dea1 100644 --- a/bot/exts/evergreen/trivia_quiz.py +++ b/bot/exts/evergreen/trivia_quiz.py @@ -125,6 +125,7 @@ def binary_calc(q_format: str, a_format: str) -> QAndA: ) ) + # if the operator is multiplication, lower the values of the two operands to make it easier if oper[0] == "*": a -= 5 b -= 5 @@ -264,7 +265,8 @@ class TriviaQuiz(commands.Cog): elif questions < 1: await ctx.send( embed=self.make_error_embed( - "You must choose to complete at least one question." + "You must choose to complete at least one question. " + "(or enter 0 for the default value of 7 questions)" ) ) return @@ -471,7 +473,7 @@ class TriviaQuiz(commands.Cog): @staticmethod async def send_score(channel: discord.TextChannel, player_data: dict) -> None: - """Send the score.""" + """Send the current scores of players in the game channel.""" if len(player_data) == 0: await channel.send("No one has made it onto the leaderboard yet.") return |