From d9130047e7fcbedd0e033c23c6b82f608cd9039b Mon Sep 17 00:00:00 2001 From: SebastiaanZ <33516116+SebastiaanZ@users.noreply.github.com> Date: Sun, 6 Jan 2019 02:38:17 +0100 Subject: Restoring DEBUG_MODE filtering condition and adding comment --- bot/cogs/filtering.py | 6 ++---- 1 file 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, -- cgit v1.2.3