diff --git a/config-example.json b/config-example.json index d7c466e..d01e716 100644 --- a/config-example.json +++ b/config-example.json @@ -4,6 +4,7 @@ "REPO": "https://github.com/taciturasa/searchbot-discord", "SERVER": "https://discord.gg/4BpReNV", "TOKEN": "", + "CACHE": false, "PREFIX": ["search!"], "MAINTENANCE": false, diff --git a/extensions/__pycache__/core.cpython-38.pyc b/extensions/__pycache__/core.cpython-38.pyc index 833ded9..010de0f 100644 Binary files a/extensions/__pycache__/core.cpython-38.pyc and b/extensions/__pycache__/core.cpython-38.pyc differ diff --git a/main.py b/main.py index 18579aa..e6e3bbb 100644 --- a/main.py +++ b/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']