Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
add embed tracking to backup (some messages weren't showing)
Browse files
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"""
|