aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2025-06-25 00:28:35 +0100
committerGravatar Joe Banks <[email protected]>2025-06-25 00:30:16 +0100
commitc226ea32e12ff69aaf0765688230b10d43a2da91 (patch)
treec99c94bc1b26738ac992fe1f3deb4c4b51b5cc7e
parentOnly tidy-up infractions outside mod channels (diff)
Exclude bot-commands from rules alert relay
-rw-r--r--bot/exts/info/information.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bot/exts/info/information.py b/bot/exts/info/information.py
index adfad4b73..7c56331bf 100644
--- a/bot/exts/info/information.py
+++ b/bot/exts/info/information.py
@@ -691,7 +691,10 @@ class Information(Cog):
if constants.Roles.helpers not in {role.id for role in ctx.author.roles}:
# If the user is not a helper, send an alert to the rules thread.
- await self._send_rules_alert(ctx, sorted_rules)
+ #
+ # Exclude the bot commands channel to avoid spamming it with alerts.
+ if ctx.channel.id != constants.Channels.bot_commands:
+ await self._send_rules_alert(ctx, sorted_rules)
await LinePaginator.paginate(final_rules, ctx, rules_embed, max_lines=3)