Skip to content

Commit 4594b2b

Browse files
Filtering: update auto-ban comments
Co-authored-by: ChrisJL <[email protected]>
1 parent d957e2d commit 4594b2b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

bot/exts/filters/filtering.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -364,10 +364,11 @@ async def _filter_message(self, msg: Message, delta: Optional[int] = None) -> No
364364
stats = self._add_stats(filter_name, match, msg.content)
365365
await self._send_log(filter_name, _filter, msg, stats, reason)
366366

367-
# If the filter reason contains `[autoban]`, we want to indeed ban
367+
# If the filter reason contains `[autoban]`, we want to auto-ban the user
368368
if reason and "[autoban]" in reason.lower():
369-
# We create a new context from that message and make sure the staffer is the bot
370-
# and the feedback message is sent in #mod-alert
369+
# Create a new context, with the author as is the bot, and the channel as #mod-alerts.
370+
# This sends the ban confirmation directly under watchlist trigger embed, to inform
371+
# mods that the user was auto-banned for the message.
371372
context = await self.bot.get_context(msg)
372373
context.author = self.bot.get_guild(Guild.id).get_member(self.bot.user.id)
373374
context.channel = self.bot.get_channel(Channels.mod_alerts)

0 commit comments

Comments
 (0)