lunarflu HF staff commited on
Commit
d92c2cd
·
verified ·
1 Parent(s): fd2e75b

add embed tracking to backup (some messages weren't showing)

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -53,6 +53,10 @@ async def on_message(message):
53
  for attachment in message.attachments:
54
  attachment_url = attachment.url
55
  backup_message += f"\nAttachment: {attachment_url}"
 
 
 
 
56
  dm_message = await lunarflu.send(backup_message)
57
 
58
  """Antispam"""
 
53
  for attachment in message.attachments:
54
  attachment_url = attachment.url
55
  backup_message += f"\nAttachment: {attachment_url}"
56
+ # check for embeds
57
+ if message.embeds:
58
+ for embed in message.embeds:
59
+ backup_message += f"\nEmbed Title: {embed.title}\nEmbed Description: {embed.description}"
60
  dm_message = await lunarflu.send(backup_message)
61
 
62
  """Antispam"""