Cleanup matrix formatting
This commit is contained in:
parent
0109645b0f
commit
3b8e971e00
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue