Embed messages that are spied on

This commit is contained in:
Ave Ozkal 2019-03-03 21:02:08 +03:00
parent fcbe3371ca
commit 374b1e8437
No known key found for this signature in database
GPG key ID: 09356ABAA42C842B
2 changed files with 8 additions and 1 deletions

View file

@ -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',

View file

@ -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)