aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2020-07-29 13:18:06 +0200
committerGravatar Leon Sandøy <[email protected]>2020-07-29 13:18:06 +0200
commita4e5044596492fe56f2c2d36468f126907602b98 (patch)
treed893ac53821dcce2086970d6b285117053d5caef
parentMerge pull request #1023 from ks129/help-channels-pin (diff)
Don't ping everyone when tripping filter in DMs.
We don't need a ping in #mod-alerts whenever someone is tripping a filter (like invites or bad language) in a DM to the bot. We can still send an embed, so that we can action it, but there is no urgent need to respond if it's just a direct message to the bot. This is particularly true now that we have #dm-log.
-rw-r--r--bot/cogs/filtering.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/filtering.py b/bot/cogs/filtering.py
index bd665f424..29aac812f 100644
--- a/bot/cogs/filtering.py
+++ b/bot/cogs/filtering.py
@@ -339,7 +339,7 @@ class Filtering(Cog):
text=message,
thumbnail=msg.author.avatar_url_as(static_format="png"),
channel_id=Channels.mod_alerts,
- ping_everyone=Filter.ping_everyone,
+ ping_everyone=Filter.ping_everyone if not is_private else False,
additional_embeds=additional_embeds,
additional_embeds_msg=additional_embeds_msg
)