From f8e85685740d1d11af09d3390253ca9a3325cedb Mon Sep 17 00:00:00 2001 From: aikaterna <20862007+aikaterna@users.noreply.github.com> Date: Fri, 1 Feb 2019 16:23:48 -0800 Subject: [PATCH] [V3 AntiPhoneClapper] Actually listen to the right channels --- antiphoneclapper/antiphoneclapper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/antiphoneclapper/antiphoneclapper.py b/antiphoneclapper/antiphoneclapper.py index 1a38d64..0257356 100644 --- a/antiphoneclapper/antiphoneclapper.py +++ b/antiphoneclapper/antiphoneclapper.py @@ -77,7 +77,8 @@ class AntiPhoneClapper(BaseCog): watch_channel_list = await self.config.guild(m.guild).watching() if not watch_channel_list: return - + if m.channel.id not in watch_channel_list: + return for att in m.attachments: if not att.filename.endswith(".gif") or att.size > 200000: continue