Use markdown for notifications

This commit is contained in:
Alexandre Aubin 2023-01-20 12:41:58 +01:00
parent 92139c1278
commit 6ada771f8b

View file

@ -42,7 +42,7 @@ async def notify(message, repository="dev"):
message = message.replace(char, "") message = message.replace(char, "")
proc = await asyncio.create_subprocess_shell( proc = await asyncio.create_subprocess_shell(
f"/var/www/webhooks/matrix-commander -m '{message}' -c /var/www/webhooks/credentials.json --store /var/www/webhooks/store --room 'yunohost-{chan}'" f"/var/www/webhooks/matrix-commander --markdown -m '{message}' -c /var/www/webhooks/credentials.json --store /var/www/webhooks/store --room 'yunohost-{chan}'"
) )
try: try:
await proc.communicate() await proc.communicate()