mirror of
https://github.com/Ryujinx/ryuko-ng.git
synced 2024-12-22 21:35:35 +00:00
Embed messages that are spied on
This commit is contained in:
parent
fcbe3371ca
commit
374b1e8437
|
@ -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',
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue