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