aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-02-24 19:22:50 -0800
committerGravatar MarkKoz <[email protected]>2020-03-22 15:54:38 -0700
commit9af7dbd0f4691918c64a28d5c3d937e81d950289 (patch)
treef01128e4692a3c3aa953c8712ca08047522876d2
parentHelpChannels: add missing units of time in messages (diff)
HelpChannels: put channels in the queue when they go dormant
-rw-r--r--bot/cogs/help_channels.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bot/cogs/help_channels.py b/bot/cogs/help_channels.py
index 7c9bf5e27..86cc5045d 100644
--- a/bot/cogs/help_channels.py
+++ b/bot/cogs/help_channels.py
@@ -324,6 +324,9 @@ class HelpChannels(Scheduler, commands.Cog):
embed = discord.Embed(description=DORMANT_MSG)
await channel.send(embed=embed)
+ log.trace(f"Pushing #{channel.name} ({channel.id}) into the channel queue.")
+ self.channel_queue.put_nowait(channel)
+
async def move_to_in_use(self, channel: discord.TextChannel) -> None:
"""Make a channel in-use and schedule it to be made dormant."""
log.info(f"Making #{channel.name} ({channel.id}) in-use.")