diff options
author | 2019-04-26 17:09:23 -0400 | |
---|---|---|
committer | 2019-04-26 17:09:23 -0400 | |
commit | 69811b9fdaeb79758439ef5768ca60ab2fe9f529 (patch) | |
tree | 784262d66ac1f2ddb738541b3d9f8491e50b3c3b | |
parent | added user input checks (diff) |
fixed some errors in easter_riddle
-rw-r--r-- | bot/seasons/easter/easter_riddle.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bot/seasons/easter/easter_riddle.py b/bot/seasons/easter/easter_riddle.py index 2562fa17..7a76e203 100644 --- a/bot/seasons/easter/easter_riddle.py +++ b/bot/seasons/easter/easter_riddle.py @@ -14,7 +14,7 @@ log = logging.getLogger(__name__) with open(Path('bot', 'resources', 'easter', 'easter_riddle.json'), 'r', encoding="utf8") as f: RIDDLE_QUESTIONS = load(f) -TIMELIMIT = 10 +TIMELIMIT = 20 class EasterRiddle(commands.Cog): @@ -24,6 +24,7 @@ class EasterRiddle(commands.Cog): self.bot = bot self.quiz_messages = {} self.mention = " " + self.correct = "" @commands.command(aliases=["riddlemethis", "riddleme"]) async def riddle(self, ctx): @@ -60,7 +61,7 @@ class EasterRiddle(commands.Cog): await asyncio.sleep(TIMELIMIT) """ - content = f"Well done {mention} for getting it correct!" if mention else "Nobody got it right..." + content = f"Well done {self.mention} for getting it correct!" if self.mention else "Nobody got it right..." a_embed = discord.Embed( title=f"The answer is: {correct}!", @@ -71,7 +72,7 @@ class EasterRiddle(commands.Cog): @commands.Cog.listener() async def on_message(self, message): - if message.lower() == self.correct.lower(): + if message.content.lower() == self.correct.lower(): self.mention = message.author |