diff options
author | 2020-04-30 02:05:29 +0100 | |
---|---|---|
committer | 2020-04-30 02:05:29 +0100 | |
commit | cfc5720925b6bbc40c45507f8579145a0014a6eb (patch) | |
tree | bfdf142a393aa643218114d09e10222657966785 | |
parent | Merge 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.py | 3 |
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 |