From 001e3faa19d9351f7574990f91c2c0e40c45f62d Mon Sep 17 00:00:00 2001 From: Daniel Mason Date: Sat, 28 Mar 2020 08:40:17 +1300 Subject: [PATCH] Resolve undefined --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 1f32b8a..0c80d6e 100644 --- a/bot.py +++ b/bot.py @@ -9,7 +9,7 @@ from dotenv import load_dotenv class DiscordKeywordBot(discord.Client): CACHE_TTL = 900 CACHE_DICT = {} - CACHE_NEXT_PURGE = int(time.time()) + (DiscordKeywordBot.CACHE_TTL * 2) + CACHE_NEXT_PURGE = int(time.time()) + 1800 async def on_ready(self): print('Logged on as', self.user)