From 568aa99270e132f621ef516f7ff91a01fa6016df Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sat, 27 Mar 2021 00:02:01 +0100 Subject: [PATCH] =?UTF-8?q?am=C3=A9lioration=20lisibilit=C3=A9=20citation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main.py b/src/main.py index a851d14..d84bbf3 100644 --- a/src/main.py +++ b/src/main.py @@ -155,16 +155,15 @@ async def on_message(message): edit = "" if msgID.edited_at: date_edit = str(msgID.edited_at.astimezone(timezone('Europe/Paris')))[:-13].replace('-', '/').split() - edit = f"(Dernier edit : {date_edit[0][8:]}/{date_edit[0][5:-3]}/{date_edit[0][:4]} à {date_edit[1]})" - message_1 = f"Date : {date_1[0][8:]}/{date_1[0][5:-3]}/{date_1[0][:4]} à {date_1[1]} {edit}" + edit = f" et modifié le {date_edit[0][8:]}/{date_edit[0][5:-3]}/{date_edit[0][:4]} à {date_edit[1]})" + messageDuBas = f"Posté le {date_1[0][8:]}/{date_1[0][5:-3]}/{date_1[0][:4]} à {date_1[1]}{edit}" date_2 = str(message.created_at.astimezone(timezone('Europe/Paris')))[:-13].replace('-', '/').split() date_2 = f"{date_2[0][8:]}/{date_2[0][5:-3]}/{date_2[0][:4]} à {date_2[1]}" - cite = "" if auteur == "Auteur": - cite = f"\nCité par {user_or_nick(message.author)} le {date_2}" - embed.set_footer(icon_url = icon_url, text = f"{message_1}{cite}") + messageDuBas = messageDuBas + f"\nCité par {user_or_nick(message.author)} le {date_2}" + embed.set_footer(icon_url = icon_url, text = messageDuBas) if message.content == linkURL.replace(' ',''): await message.channel.send(embed = embed) await message.delete()