aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons
diff options
context:
space:
mode:
authorGravatar JackyFWong <[email protected]>2019-04-26 18:06:02 -0400
committerGravatar JackyFWong <[email protected]>2019-04-26 18:06:02 -0400
commit120fa538166eb6fbaa40579633c0d5694cb8199e (patch)
treede76fac83e884cc7af14c9f83c50bc02e15bb8bc /bot/seasons
parentadded answer parsing and pining winner (diff)
finalized riddles and fixed various easter_riddle bugs
Diffstat (limited to 'bot/seasons')
-rw-r--r--bot/seasons/easter/easter_riddle.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/bot/seasons/easter/easter_riddle.py b/bot/seasons/easter/easter_riddle.py
index 18b4c31d..6b2ab5ca 100644
--- a/bot/seasons/easter/easter_riddle.py
+++ b/bot/seasons/easter/easter_riddle.py
@@ -60,7 +60,7 @@ class EasterRiddle(commands.Cog):
await asyncio.sleep(TIMELIMIT)
if self.winner != " ":
- content = "Well done " + self.winner + " for getting it correct!"
+ content = "Well done " + self.winner + "for getting it correct!"
else:
content = "Nobody got it right..."
@@ -75,8 +75,9 @@ class EasterRiddle(commands.Cog):
@commands.Cog.listener()
async def on_message(self, message):
- if message.content.lower() == self.correct.lower():
- self.winner = message.author.mention
+ if self.bot.user != message.author:
+ if message.content.lower() == self.correct.lower():
+ self.winner = self.winner + message.author.mention + " "