no reply errors in cache

pull/191/head
bobloy 4 years ago
parent 9c63c12656
commit c165313031

@ -63,7 +63,7 @@ class Chatter(Cog):
self.bot = bot self.bot = bot
self.config = Config.get_conf(self, identifier=6710497116116101114) self.config = Config.get_conf(self, identifier=6710497116116101114)
default_global = {"learning": True} default_global = {"learning": True}
default_guild = { self.default_guild = {
"whitelist": None, "whitelist": None,
"days": 1, "days": 1,
"convo_delta": 15, "convo_delta": 15,
@ -711,7 +711,9 @@ class Chatter(Cog):
) )
replying = None 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: if message != ctx.channel.last_message:
replying = message replying = message

Loading…
Cancel
Save