aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar SebastiaanZ <[email protected]>2019-01-06 02:38:17 +0100
committerGravatar SebastiaanZ <[email protected]>2019-01-06 02:38:17 +0100
commitd9130047e7fcbedd0e033c23c6b82f608cd9039b (patch)
treece6b6636a8c2236ee493b3839bf0e5b4e70dcbf6
parentAdding 'rich embed' filter to filtering, 'embed'-support to modlog, and 'rich... (diff)
Restoring DEBUG_MODE filtering condition and adding comment
-rw-r--r--bot/cogs/filtering.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/bot/cogs/filtering.py b/bot/cogs/filtering.py
index f6a1e7b4d..9324314df 100644
--- a/bot/cogs/filtering.py
+++ b/bot/cogs/filtering.py
@@ -133,11 +133,8 @@ class Filtering:
)
# If we're running the bot locally, ignore role whitelist and only listen to #dev-test
- # if DEBUG_MODE:
- # filter_message = not msg.author.bot and msg.channel.id == Channels.devtest
-
if DEBUG_MODE:
- filter_message = msg.author.id != 414020331980980234 and msg.channel.id == Channels.devtest
+ filter_message = not msg.author.bot and msg.channel.id == Channels.devtest
# If none of the above, we can start filtering.
if filter_message:
@@ -199,6 +196,7 @@ class Filtering:
ping_everyone=Filter.ping_everyone,
)
+ # If filtering rich embeds, also send the removed embeds to mod_alerts
if filter_name == "filter_rich_embeds":
await self.mod_log.send_log_embeds(
embeds=msg.embeds,