From e6181a704b88c640fc908a9e50b93b649da46bbe Mon Sep 17 00:00:00 2001 From: aikaterna <20862007+aikaterna@users.noreply.github.com> Date: Tue, 1 Oct 2019 19:42:41 -0700 Subject: [PATCH] [Trick Or Treat] Set time before waiting --- trickortreat/trickortreat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trickortreat/trickortreat.py b/trickortreat/trickortreat.py index be105a2..b64421e 100644 --- a/trickortreat/trickortreat.py +++ b/trickortreat/trickortreat.py @@ -463,6 +463,7 @@ class TrickOrTreat(BaseCog): int((now - last_time).total_seconds()) < await self.config.guild(message.guild).cooldown() ): + await self.config.user(message.author).last_tot.set(str(now)) messages = [ "The thought of candy right now doesn't really sound like a good idea.", "All the lights on this street are dark...", @@ -532,4 +533,3 @@ class TrickOrTreat(BaseCog): win_message += "\n**BONUS**: 1 \N{WHITE MEDIUM STAR}" await message.channel.send(win_message) - await self.config.user(message.author).last_tot.set(str(now))