From c165313031644c4480aedff848859a7a1c36da8b Mon Sep 17 00:00:00 2001 From: bobloy Date: Thu, 1 Jul 2021 15:25:38 -0400 Subject: [PATCH] no reply errors in cache --- chatter/chat.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/chatter/chat.py b/chatter/chat.py index b8cf75d..2deb082 100644 --- a/chatter/chat.py +++ b/chatter/chat.py @@ -63,7 +63,7 @@ class Chatter(Cog): self.bot = bot self.config = Config.get_conf(self, identifier=6710497116116101114) default_global = {"learning": True} - default_guild = { + self.default_guild = { "whitelist": None, "days": 1, "convo_delta": 15, @@ -711,7 +711,9 @@ class Chatter(Cog): ) replying = None - if self._guild_cache[guild.id]["reply"]: + if ( + "reply" not in self._guild_cache[guild.id] and self.default_guild["reply"] + ) or self._guild_cache[guild.id]["reply"]: if message != ctx.channel.last_message: replying = message