mirror of
https://github.com/polyjitter/searchbot-discord.git
synced 2024-08-14 22:46:55 +00:00
Disabled cache for performance reasons
This commit is contained in:
parent
688a2e489c
commit
c8e98fbf5c
3 changed files with 3 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
|||
"REPO": "https://github.com/taciturasa/searchbot-discord",
|
||||
"SERVER": "https://discord.gg/4BpReNV",
|
||||
"TOKEN": "",
|
||||
"CACHE": false,
|
||||
"PREFIX": ["search!"],
|
||||
|
||||
"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.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']
|
||||
|
|
Loading…
Reference in a new issue