aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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):