aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/trivia_quiz.py
diff options
context:
space:
mode:
authorGravatar Objectivitix <[email protected]>2021-05-16 15:50:07 -0400
committerGravatar GitHub <[email protected]>2021-05-16 15:50:07 -0400
commit07b5f296bed099d4cde849cfeba3320e3f4aa808 (patch)
tree87b8efa0a3d11d38eb0f77c75e4a42d5033584b9 /bot/exts/evergreen/trivia_quiz.py
parentdelete trailing whitespace after docstring (diff)
parentMerge pull request #738 from python-discord/vcokltfre/feat/bookmark-reply (diff)
Merge branch 'main' into main
Diffstat (limited to 'bot/exts/evergreen/trivia_quiz.py')
-rw-r--r--bot/exts/evergreen/trivia_quiz.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/evergreen/trivia_quiz.py b/bot/exts/evergreen/trivia_quiz.py
index 6d421668..419126dc 100644
--- a/bot/exts/evergreen/trivia_quiz.py
+++ b/bot/exts/evergreen/trivia_quiz.py
@@ -11,6 +11,7 @@ import discord
from discord.ext import commands
from fuzzywuzzy import fuzz
+from bot.bot import Bot
from bot.constants import Colours, NEGATIVE_REPLIES, Roles
logger = logging.getLogger(__name__)
@@ -192,7 +193,7 @@ DYNAMIC_QUESTIONS_FORMAT_FUNCS = {
class TriviaQuiz(commands.Cog):
"""A cog for all quiz commands."""
- def __init__(self, bot: commands.Bot) -> None:
+ def __init__(self, bot: Bot) -> None:
self.bot = bot
self.game_status = {} # A variable to store the game status: either running or not running.
@@ -243,7 +244,6 @@ class TriviaQuiz(commands.Cog):
"Game is already running... "
f"do `{self.bot.command_prefix}quiz stop`"
)
-
return
# Send embed showing available categories if inputted category is invalid.
@@ -585,6 +585,6 @@ class TriviaQuiz(commands.Cog):
await channel.send(embed=embed)
-def setup(bot: commands.Bot) -> None:
+def setup(bot: Bot) -> None:
"""Load the TriviaQuiz cog."""
bot.add_cog(TriviaQuiz(bot))