diff options
author | 2019-10-23 11:04:26 +0200 | |
---|---|---|
committer | 2019-10-23 11:04:26 +0200 | |
commit | fae86078206eb5726c606636aaa6a0ba315f5b73 (patch) | |
tree | a1bb77206ab4676075e03ad2de43fc9db4b09c35 | |
parent | Merge pull request #541 from ikuyarihS/master (diff) |
Use standart filter conditions even if DEBUG_MODE is on.
The old method filtered only in #dev-test but this channel
no longer exists
-rw-r--r-- | bot/cogs/filtering.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/bot/cogs/filtering.py b/bot/cogs/filtering.py index 1d1d74e74..fda58b83a 100644 --- a/bot/cogs/filtering.py +++ b/bot/cogs/filtering.py @@ -9,7 +9,7 @@ from discord.ext.commands import Bot, Cog from bot.cogs.moderation import ModLog from bot.constants import ( - Channels, Colours, DEBUG_MODE, + Channels, Colours, Filter, Icons, URLs ) @@ -136,10 +136,6 @@ class Filtering(Cog): and not msg.author.bot # Author not a bot ) - # 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 none of the above, we can start filtering. if filter_message: for filter_name, _filter in self.filters.items(): |