From 3b8e971e001dced704f691dbad0a06f85f330113 Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Fri, 18 Aug 2023 01:21:03 +0200 Subject: [PATCH] Cleanup matrix formatting --- sendMatrix.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sendMatrix.py b/sendMatrix.py index fccbdc5..32908c8 100644 --- a/sendMatrix.py +++ b/sendMatrix.py @@ -18,14 +18,13 @@ async def sendMatrixAnnouncement(event: Event, channel: str = ANNOUNCEMENT_CHANN url = "https://www.pvv.ntnu.no/hendelser/info.php?id={}".format(event.id) msgText = '''\ ## Dagens arrangement / Event of the Day: "{name}" - #### 🕒 {start} - #### 📍 {location} - #### 🛂 av / by "{organizer}" + - 🕒 **{start}** + - 📍 **{location}** {description} [Les mer / Read More]({url}) - '''.format(name=event.name, start=event.start.strftime('%H:%M'), location=event.location, organizer=event.organizer, description=event.description, url=url) + '''.format(name=event.name, start=event.start.strftime('%H:%M'), location=event.location, description=event.description, url=url) msgText = dedent(msgText)