aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar kosayoda <[email protected]>2019-10-28 02:55:43 +0800
committerGravatar kosayoda <[email protected]>2019-10-28 02:55:43 +0800
commitaf0e5329a5202c52cd94f86078c4a03119f7e324 (patch)
treed2b2a4cb0117842b0cf8e312c15b4dbac6555deb
parentRemove dev-test limit for filtering debugging (diff)
Revert "Remove dev-test limit for filtering debugging"
This reverts commit 56696b3b1858ad27dc7f3dce2898c7a6eb151f43.
-rw-r--r--bot/cogs/filtering.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/filtering.py b/bot/cogs/filtering.py
index 11c5d7223..1d1d74e74 100644
--- a/bot/cogs/filtering.py
+++ b/bot/cogs/filtering.py
@@ -136,9 +136,9 @@ class Filtering(Cog):
and not msg.author.bot # Author not a bot
)
- # If we're running the bot locally, ignore role whitelist
+ # 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
+ filter_message = not msg.author.bot and msg.channel.id == Channels.devtest
# If none of the above, we can start filtering.
if filter_message: