aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
authorGravatar JackyFWong <[email protected]>2019-06-17 16:01:31 -0400
committerGravatar JackyFWong <[email protected]>2019-06-17 16:01:31 -0400
commit6f01cdf7ec7f71d32e547cf259c5af42b7fec543 (patch)
tree133b47eae5cbc3303a6346933a2a766f6ac7dada /bot
parentmost changes requested implemented, fixed linting errors (diff)
fixed winner list format and self.winner bool
Diffstat (limited to 'bot')
-rw-r--r--bot/seasons/easter/easter_riddle.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/bot/seasons/easter/easter_riddle.py b/bot/seasons/easter/easter_riddle.py
index 65d94e5c..d3efdc43 100644
--- a/bot/seasons/easter/easter_riddle.py
+++ b/bot/seasons/easter/easter_riddle.py
@@ -23,7 +23,7 @@ class EasterRiddle(commands.Cog):
def __init__(self, bot):
self.bot = bot
self.quiz_messages = {}
- self.winner = ""
+ self.winner = []
self.correct = ""
@commands.command(aliases=["riddlemethis", "riddleme"])
@@ -57,8 +57,10 @@ class EasterRiddle(commands.Cog):
await ctx.send(embed=h_embed)
await asyncio.sleep(TIMELIMIT)
- if not self.winner:
- content = f"Well done {self.winner} for getting it correct!"
+ if self.winner:
+ win_list = " "
+ win_list = win_list.join(self.winner)
+ content = f"Well done {win_list} for getting it correct!"
else:
content = "Nobody got it right..."
@@ -76,7 +78,7 @@ class EasterRiddle(commands.Cog):
"""If a non-bot user enters a correct answer, their username gets added to self.winner"""
if self.bot.user != message.author:
if message.content.lower() == self.correct.lower():
- self.winner = self.winner + message.author.mention + " "
+ self.winner.append(message.author.mention)
def setup(bot):