Skip to content

Commit c226ea3

Browse files
committed
Exclude bot-commands from rules alert relay
1 parent dad7497 commit c226ea3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bot/exts/info/information.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,10 @@ async def rules(self, ctx: Context, *, args: str | None) -> set[int] | None:
691691

692692
if constants.Roles.helpers not in {role.id for role in ctx.author.roles}:
693693
# If the user is not a helper, send an alert to the rules thread.
694-
await self._send_rules_alert(ctx, sorted_rules)
694+
#
695+
# Exclude the bot commands channel to avoid spamming it with alerts.
696+
if ctx.channel.id != constants.Channels.bot_commands:
697+
await self._send_rules_alert(ctx, sorted_rules)
695698

696699
await LinePaginator.paginate(final_rules, ctx, rules_embed, max_lines=3)
697700

0 commit comments

Comments
 (0)