From ca48e4c1347c628980cf788194afd117480d07c1 Mon Sep 17 00:00:00 2001 From: git-bruh Date: Sat, 14 Nov 2020 20:55:37 +0530 Subject: [PATCH] Highlight Matrix attachment name --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index 3530746..529af37 100644 --- a/main.py +++ b/main.py @@ -225,6 +225,9 @@ async def message_callback(room, event): # Get attachments try: + # Highlight attachment name + message = f"`{message}`" + attachment = event.url.split("/")[-1] message += f"\n{url}/{homeserver}/{attachment}" except AttributeError: