1
0
Fork 0

break line after each command option

Co-authored-by: Salamandar <6552989+Salamandar@users.noreply.github.com>
This commit is contained in:
OniriCorpe 2024-03-16 21:23:44 +01:00 committed by Salamandar
parent 5b6dc562c9
commit f6cd32a2e8

View file

@ -19,10 +19,13 @@ def notify(message, channel):
message = message.replace(char, "") message = message.replace(char, "")
try: try:
subprocess.call( subprocess.call([
[
"/var/www/webhooks/matrix-commander", "/var/www/webhooks/matrix-commander",
"--markdown -m '{message}' -c /var/www/webhooks/credentials.json --store /var/www/webhooks/store --room 'yunohost-{channel}'", "--markdown",
"-m", message,
"-c", "/var/www/webhooks/credentials.json",
"--store", "/var/www/webhooks/store",
"--room", f"yunohost-{channel}",
], ],
stdout=subprocess.DEVNULL, stdout=subprocess.DEVNULL,
) )