aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joseph Banks <[email protected]>2020-04-30 02:05:29 +0100
committerGravatar Joseph Banks <[email protected]>2020-04-30 02:05:29 +0100
commitcfc5720925b6bbc40c45507f8579145a0014a6eb (patch)
treebfdf142a393aa643218114d09e10222657966785
parentMerge pull request #913 from python-discord/add-bottom-sorting-to-help-channels (diff)
Run a category check before logging that we are checking for an answered help channel
-rw-r--r--bot/cogs/help_channels.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/cogs/help_channels.py b/bot/cogs/help_channels.py
index b5cb37015..b714a1642 100644
--- a/bot/cogs/help_channels.py
+++ b/bot/cogs/help_channels.py
@@ -649,10 +649,11 @@ class HelpChannels(Scheduler, commands.Cog):
async def check_for_answer(self, message: discord.Message) -> None:
"""Checks for whether new content in a help channel comes from non-claimants."""
channel = message.channel
- log.trace(f"Checking if #{channel} ({channel.id}) has been answered.")
# Confirm the channel is an in use help channel
if self.is_in_category(channel, constants.Categories.help_in_use):
+ log.trace(f"Checking if #{channel} ({channel.id}) has been answered.")
+
# Check if there is an entry in unanswered (does not persist across restarts)
if channel.id in self.unanswered:
claimant_id = self.help_channel_claimants[channel].id