hopefully fix nofilter
@@ -308,17 +308,19 @@ class Events:
call(['git', 'pull'])
await self.bot.close()
return
+ if message.channel.name.endswith('nofilter'):
+ return
await self.bot.wait_until_all_ready()
if message.author == self.bot.server.me or self.bot.staff_role in message.author.roles or message.channel == self.bot.helpers_channel: # don't process messages by the bot or staff or in the helpers channel
return
- if message.channel.name.endswith('-nofilter'):
- return
await self.scan_message(message)
await self.keyword_search(message)
self.bot.loop.create_task(self.user_s pam_check(message))
self.bot.loop.create_task(self.channel_spam_check(message))
async def on_message_edit(self, message_before, message_after):
+ if message.channel.name.endswith('nofilter'):
+ return
await self.bot.wait_until_all_ready()
if message_after.author == self.bot.server.me or self.bot.staff_role in message_after.author.roles or message_after.channel == self.bot.helpers_channel: # don't process messages by the bot or staff or in the helpers channel
return
