Disabled cache for performance reasons

This commit is contained in:
Adriene Hutchins 2020-03-20 23:49:10 -04:00
parent 688a2e489c
commit c8e98fbf5c
3 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,7 @@
"REPO": "https://github.com/taciturasa/searchbot-discord",
"SERVER": "https://discord.gg/4BpReNV",
"TOKEN": "",
"CACHE": false,
"PREFIX": ["search!"],
"MAINTENANCE": false,

View File

@ -41,6 +41,8 @@ class Bot(commands.Bot):
self.repo: str = self.config['REPO']
self.support_server: str = self.config['SERVER']
self.perms: int = self.config['PERMS']
if not self.config['CACHE']:
self.max_messages = None
# Toggles
self.maintenance: bool = self.config['MAINTENANCE']