From 1265871c33ac56e5f67d33cb50bd21b3107c0051 Mon Sep 17 00:00:00 2001 From: Paul Wilde Date: Sun, 25 Aug 2024 22:18:07 +0100 Subject: [PATCH] slight tweak to uptime kumanotifier --- norg/notifier/uptimekuma_notifier.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/norg/notifier/uptimekuma_notifier.nim b/norg/notifier/uptimekuma_notifier.nim index 1f216f8..8b9f8f2 100644 --- a/norg/notifier/uptimekuma_notifier.nim +++ b/norg/notifier/uptimekuma_notifier.nim @@ -8,13 +8,13 @@ type UptimeKuma* = object of Notifier proc send_notify*(uk: UptimeKuma, state: State, runtime: int = 0, msg: string = ""): int {.discardable.} = - var status: string + var status: string = "down" case state of Success, Running: status = "up" else: status = "down" - let message = fmt"{status}\r\n{msg}" + let message = fmt"{status}:{msg}" let url = fmt"{uk.base_url}?status={status}&msg={message}&ping={runtime}" echo "Sending notification to " & url