Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
add {message.author.id} to backup (more consistent compared to message.author)
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ async def on_message(message):
|
|
49 |
number_of_messages = number_of_messages + 1
|
50 |
message_link = f"[#{message.channel.name}]({message.jump_url})"
|
51 |
msgcnt = message.content
|
52 |
-
backup_message = f"{number_of_messages} | {message_link} | {message.author}: {msgcnt}"
|
53 |
# check for attachments
|
54 |
if message.attachments:
|
55 |
for attachment in message.attachments:
|
|
|
49 |
number_of_messages = number_of_messages + 1
|
50 |
message_link = f"[#{message.channel.name}]({message.jump_url})"
|
51 |
msgcnt = message.content
|
52 |
+
backup_message = f"{number_of_messages} | {message_link} | {message.author.id} | {message.author}: {msgcnt}"
|
53 |
# check for attachments
|
54 |
if message.attachments:
|
55 |
for attachment in message.attachments:
|