[Trick Or Treat] Set time before waiting

This commit is contained in:
aikaterna
2019-10-01 19:42:41 -07:00
committed by GitHub
parent 3d68a3af31
commit e6181a704b

View File

@@ -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))