aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/easter/egghead_quiz.py
diff options
context:
space:
mode:
authorGravatar S. Co1 <[email protected]>2019-05-30 20:27:23 -0400
committerGravatar GitHub <[email protected]>2019-05-30 20:27:23 -0400
commit484f61b04c0cfa5c02a2047c1f3fc7f34418d212 (patch)
tree88258e0b987f9bc31bef53f5afcf90074eb4233b /bot/seasons/easter/egghead_quiz.py
parentMerge pull request #211 from RohanRadia/master (diff)
parentFix snake draw command (diff)
Merge pull request #200 from python-discord/docstring-lint-change
Docstring lint change
Diffstat (limited to 'bot/seasons/easter/egghead_quiz.py')
-rw-r--r--bot/seasons/easter/egghead_quiz.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/bot/seasons/easter/egghead_quiz.py b/bot/seasons/easter/egghead_quiz.py
index 8dd2c21d..7adeaebd 100644
--- a/bot/seasons/easter/egghead_quiz.py
+++ b/bot/seasons/easter/egghead_quiz.py
@@ -41,7 +41,6 @@ class EggheadQuiz(commands.Cog):
Also informs of the percentages and votes of each option
"""
-
random_question = random.choice(EGGHEAD_QUESTIONS)
question, answers = random_question["question"], random_question["answers"]
answers = [(EMOJIS[i], a) for i, a in enumerate(answers)]
@@ -69,7 +68,7 @@ class EggheadQuiz(commands.Cog):
total_no = sum([len(await r.users().flatten()) for r in msg.reactions]) - len(valid_emojis) # - bot's reactions
if total_no == 0:
- return await msg.delete() # to avoid ZeroDivisionError if nobody reacts
+ return await msg.delete() # To avoid ZeroDivisionError if nobody reacts
results = ["**VOTES:**"]
for emoji, _ in answers:
@@ -115,7 +114,6 @@ class EggheadQuiz(commands.Cog):
def setup(bot):
- """Cog load."""
-
+ """Egghead Quiz Cog load."""
bot.add_cog(EggheadQuiz(bot))
log.info("EggheadQuiz bot loaded")