From e779903ac15618aae067dc3256caa6b9aab7f33c Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Tue, 5 Feb 2019 23:52:09 +0300 Subject: [PATCH] I don't spy with my eye... bot posts --- cogs/logs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/logs.py b/cogs/logs.py index 8e38c7c..3a8b10a 100644 --- a/cogs/logs.py +++ b/cogs/logs.py @@ -70,7 +70,7 @@ class Logs: async def on_message_edit(self, before, after): await self.bot.wait_until_ready() - if after.channel.id not in config.spy_channels: + if after.channel.id not in config.spy_channels or after.author.bot: return log_channel = self.bot.get_channel(config.log_channel) @@ -82,7 +82,7 @@ class Logs: async def on_message_delete(self, message): await self.bot.wait_until_ready() - if message.channel.id not in config.spy_channels: + if message.channel.id not in config.spy_channels or message.author.bot: return log_channel = self.bot.get_channel(config.log_channel)