aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Rohan_Iceman <[email protected]>2019-12-20 13:58:54 +0530
committerGravatar GitHub <[email protected]>2019-12-20 13:58:54 +0530
commitc9e6bf2ac3fe85086a4d1ca69d8b37469d47d095 (patch)
tree4d60d21f812bb33c9babf486926c09109c436c0f
parentfixed lint errors (diff)
Update bot/seasons/evergreen/trivia_quiz.py
Co-Authored-By: Mark <[email protected]>
-rw-r--r--bot/seasons/evergreen/trivia_quiz.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bot/seasons/evergreen/trivia_quiz.py b/bot/seasons/evergreen/trivia_quiz.py
index 2b43bb8b..67c202f0 100644
--- a/bot/seasons/evergreen/trivia_quiz.py
+++ b/bot/seasons/evergreen/trivia_quiz.py
@@ -69,7 +69,9 @@ class TriviaQuiz(commands.Cog):
# Send embed showing available categori es if inputted category is invalid.
if category is None:
category = random.choice(list(self.categories))
- if category.lower() not in self.categories:
+
+ category = category.lower()
+ if category not in self.categories:
embed = self.category_embed()
await ctx.send(embed=embed)
return