Resolve undefined

This commit is contained in:
Daniel Mason 2020-03-28 08:40:17 +13:00
parent e3a04222e5
commit 001e3faa19

2
bot.py
View File

@ -9,7 +9,7 @@ from dotenv import load_dotenv
class DiscordKeywordBot(discord.Client): class DiscordKeywordBot(discord.Client):
CACHE_TTL = 900 CACHE_TTL = 900
CACHE_DICT = {} CACHE_DICT = {}
CACHE_NEXT_PURGE = int(time.time()) + (DiscordKeywordBot.CACHE_TTL * 2) CACHE_NEXT_PURGE = int(time.time()) + 1800
async def on_ready(self): async def on_ready(self):
print('Logged on as', self.user) print('Logged on as', self.user)