diff options
| author | 2020-02-24 18:46:14 -0800 | |
|---|---|---|
| committer | 2020-03-22 15:54:38 -0700 | |
| commit | 8278d9780a94d44ee779748468dd80689287e91e (patch) | |
| tree | c7dc003f47f9601184b9c6b17bed62b978f7af35 | |
| parent | Resources: make all element names lower cased (diff) | |
HelpChannels: ignore messages sent by bots
| -rw-r--r-- | bot/cogs/help_channels.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bot/cogs/help_channels.py b/bot/cogs/help_channels.py index 391d400b1..ce71d285a 100644 --- a/bot/cogs/help_channels.py +++ b/bot/cogs/help_channels.py @@ -344,6 +344,9 @@ class HelpChannels(Scheduler, commands.Cog): @commands.Cog.listener() async def on_message(self, message: discord.Message) -> None: """Move an available channel to the In Use category and replace it with a dormant one.""" + if message.author.bot: + return # Ignore messages sent by bots. + log.trace("Waiting for the cog to be ready before processing messages.") await self.ready.wait() |