Disabled cache for performance reasons
This commit is contained in:
parent
688a2e489c
commit
c8e98fbf5c
|
@ -4,6 +4,7 @@
|
||||||
"REPO": "https://github.com/taciturasa/searchbot-discord",
|
"REPO": "https://github.com/taciturasa/searchbot-discord",
|
||||||
"SERVER": "https://discord.gg/4BpReNV",
|
"SERVER": "https://discord.gg/4BpReNV",
|
||||||
"TOKEN": "",
|
"TOKEN": "",
|
||||||
|
"CACHE": false,
|
||||||
"PREFIX": ["search!"],
|
"PREFIX": ["search!"],
|
||||||
|
|
||||||
"MAINTENANCE": false,
|
"MAINTENANCE": false,
|
||||||
|
|
Binary file not shown.
2
main.py
2
main.py
|
@ -41,6 +41,8 @@ class Bot(commands.Bot):
|
||||||
self.repo: str = self.config['REPO']
|
self.repo: str = self.config['REPO']
|
||||||
self.support_server: str = self.config['SERVER']
|
self.support_server: str = self.config['SERVER']
|
||||||
self.perms: int = self.config['PERMS']
|
self.perms: int = self.config['PERMS']
|
||||||
|
if not self.config['CACHE']:
|
||||||
|
self.max_messages = None
|
||||||
|
|
||||||
# Toggles
|
# Toggles
|
||||||
self.maintenance: bool = self.config['MAINTENANCE']
|
self.maintenance: bool = self.config['MAINTENANCE']
|
||||||
|
|
Loading…
Reference in New Issue