aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
authorGravatar Objectivitix <[email protected]>2021-05-10 12:10:54 -0300
committerGravatar GitHub <[email protected]>2021-05-10 12:10:54 -0300
commitaab59b138e877fab349314b4b326ede914ea56c3 (patch)
tree12a199d223fc8e5dcfe2458dcbb5841f5551212b /bot
parentmake vartol stricter when it's a generated question (diff)
lint failure fixes
Diffstat (limited to 'bot')
-rw-r--r--bot/exts/evergreen/trivia_quiz.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/bot/exts/evergreen/trivia_quiz.py b/bot/exts/evergreen/trivia_quiz.py
index c00d91ae..94dc9f06 100644
--- a/bot/exts/evergreen/trivia_quiz.py
+++ b/bot/exts/evergreen/trivia_quiz.py
@@ -216,11 +216,13 @@ class TriviaQuiz(commands.Cog):
async def quiz_game(self, ctx: commands.Context, category: Optional[str], questions: Optional[int]) -> None:
"""
Start a quiz!
+
Questions for the quiz can be selected from the following categories:
- general: Test your general knowledge. (default)
- retro: Questions related to retro gaming.
- math: General questions about mathematics ranging from grade 8 to grade 12.
- science: Put your understanding of science to the test!
+
(More to come!)
"""
if ctx.channel.id not in self.game_status:
@@ -450,6 +452,7 @@ class TriviaQuiz(commands.Cog):
async def stop_quiz(self, ctx: commands.Context) -> None:
"""
Stop a quiz game if its running in the channel.
+
Note: Only mods or the owner of the quiz can stop it.
"""
if self.game_status[ctx.channel.id] is True:
@@ -556,8 +559,8 @@ class TriviaQuiz(commands.Cog):
embed = discord.Embed(
color=Colours.bright_green,
title=(
- ("You got it! " if answer_is_correct else "") +
- f"The correct answer {word} **`{', '.join(answers)}`**\n"
+ ("You got it! " if answer_is_correct else "")
+ + f"The correct answer {word} **`{', '.join(answers)}`**\n"
),
description="",
)
@@ -566,8 +569,8 @@ class TriviaQuiz(commands.Cog):
embed.description += f"**Information**\n{info}\n\n"
embed.description += (
- ("Let's move to the next question." if q_left > 0 else "") +
- f"\nRemaining questions: {q_left}"
+ ("Let's move to the next question." if q_left > 0 else "")
+ + f"\nRemaining questions: {q_left}"
)
await channel.send(embed=embed)