aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
authorGravatar JackyFWong <[email protected]>2019-06-17 16:24:55 -0400
committerGravatar JackyFWong <[email protected]>2019-06-17 16:24:55 -0400
commitbf75c4dbf08f22e138ce145452f7738e8c836f5f (patch)
tree1618633ce620875a51ab88857fd0f081ceb0aacc /bot
parentfixed winner list format and self.winner bool (diff)
fix variables and typo
Diffstat (limited to 'bot')
-rw-r--r--bot/seasons/easter/easter_riddle.py15
1 files changed, 6 insertions, 9 deletions
diff --git a/bot/seasons/easter/easter_riddle.py b/bot/seasons/easter/easter_riddle.py
index d3efdc43..747c6cdc 100644
--- a/bot/seasons/easter/easter_riddle.py
+++ b/bot/seasons/easter/easter_riddle.py
@@ -22,8 +22,7 @@ class EasterRiddle(commands.Cog):
def __init__(self, bot):
self.bot = bot
- self.quiz_messages = {}
- self.winner = []
+ self.winners = []
self.correct = ""
@commands.command(aliases=["riddlemethis", "riddleme"])
@@ -57,10 +56,10 @@ class EasterRiddle(commands.Cog):
await ctx.send(embed=h_embed)
await asyncio.sleep(TIMELIMIT)
- if self.winner:
- win_list = " "
- win_list = win_list.join(self.winner)
+ if self.winners:
+ win_list = " ".join(self.winners)
content = f"Well done {win_list} for getting it correct!"
+ self.winners = []
else:
content = "Nobody got it right..."
@@ -71,14 +70,12 @@ class EasterRiddle(commands.Cog):
await ctx.send(content, embed=a_embed)
- self.winner = ""
-
@commands.Cog.listener()
async def on_message(self, message):
- """If a non-bot user enters a correct answer, their username gets added to self.winner"""
+ """If a non-bot user enters a correct answer, their username gets added to self.winners"""
if self.bot.user != message.author:
if message.content.lower() == self.correct.lower():
- self.winner.append(message.author.mention)
+ self.winners.append(message.author.mention)
def setup(bot):