I don't spy with my eye... bot posts
This commit is contained in:
parent
df82e6268d
commit
e779903ac1
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue