I don't spy with my eye... bot posts

This commit is contained in:
Ave Ozkal 2019-02-05 23:52:09 +03:00
parent df82e6268d
commit e779903ac1
No known key found for this signature in database
GPG key ID: 09356ABAA42C842B

View file

@ -70,7 +70,7 @@ class Logs:
async def on_message_edit(self, before, after): async def on_message_edit(self, before, after):
await self.bot.wait_until_ready() 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 return
log_channel = self.bot.get_channel(config.log_channel) log_channel = self.bot.get_channel(config.log_channel)
@ -82,7 +82,7 @@ class Logs:
async def on_message_delete(self, message): async def on_message_delete(self, message):
await self.bot.wait_until_ready() 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 return
log_channel = self.bot.get_channel(config.log_channel) log_channel = self.bot.get_channel(config.log_channel)