From 374b1e8437b87beb52efd09763d751f76c530db5 Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Sun, 3 Mar 2019 21:02:08 +0300 Subject: [PATCH] Embed messages that are spied on --- Robocop.py | 1 + cogs/logs.py | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Robocop.py b/Robocop.py index fb9aecf..efef247 100755 --- a/Robocop.py +++ b/Robocop.py @@ -51,6 +51,7 @@ initial_extensions = ['cogs.common', 'cogs.mod_reacts', 'cogs.mod_userlog', 'cogs.mod_timed', + 'cogs.mod_watch', 'cogs.basic', 'cogs.logs', 'cogs.err', diff --git a/cogs/logs.py b/cogs/logs.py index 8da9ae0..3b7ba37 100644 --- a/cogs/logs.py +++ b/cogs/logs.py @@ -153,7 +153,13 @@ class Logs(Cog): if alert: msg += f"\n\nJump: <{message.jump_url}>" spy_channel = self.bot.get_channel(config.spylog_channel) - await spy_channel.send(msg) + + # Show a message embed + embed = discord.Embed(description=message.content) + embed.set_author(name=message.author.display_name, + icon_url=message.author.avatar_url) + + await spy_channel.send(msg, embed=embed) async def do_nickcheck(self, message): compliant = self.name_re.fullmatch(message.author.display_name)