diff options
author | AnInternetTroll <lucafulger@gmail.com> | 2020-06-14 10:09:39 +0000 |
---|---|---|
committer | AnInternetTroll <lucafulger@gmail.com> | 2020-06-14 10:09:39 +0000 |
commit | c87ade2e08b0117bd5a0db5611ce47287fbfb6de (patch) | |
tree | 6c541d011ed271ed8293dee2f7967b9af8644e83 /cogs/logs.py | |
parent | b889beaa39fb60adb81c422fc9ccc30b3ebd8293 (diff) | |
download | steve-bot-c87ade2e08b0117bd5a0db5611ce47287fbfb6de.tar steve-bot-c87ade2e08b0117bd5a0db5611ce47287fbfb6de.tar.gz steve-bot-c87ade2e08b0117bd5a0db5611ce47287fbfb6de.tar.bz2 steve-bot-c87ade2e08b0117bd5a0db5611ce47287fbfb6de.tar.lz steve-bot-c87ade2e08b0117bd5a0db5611ce47287fbfb6de.tar.xz steve-bot-c87ade2e08b0117bd5a0db5611ce47287fbfb6de.tar.zst steve-bot-c87ade2e08b0117bd5a0db5611ce47287fbfb6de.zip |
Better logging
Diffstat (limited to 'cogs/logs.py')
-rw-r--r-- | cogs/logs.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cogs/logs.py b/cogs/logs.py index c6f18b5..d6889eb 100644 --- a/cogs/logs.py +++ b/cogs/logs.py @@ -8,6 +8,9 @@ class Logs(commands.Cog): @commands.Cog.listener() async def on_message_delete(self, message): + if (message.id in self.bot.messageBlacklist): + self.bot.messageBlacklist.remove(message.id) + return if message.guild.id != 574267523869179904: return if message.author.color.value == 0: @@ -17,7 +20,7 @@ class Logs(commands.Cog): channel = self.bot.get_channel(718187032869994686) embed = discord.Embed( title='Deleted Message', - color=message, + color=color, timestamp=message.created_at ) embed.add_field( |