correct uptime kuma msg

This commit is contained in:
Paul Wilde 2024-08-27 18:50:58 +01:00
parent 53b68a1930
commit 9b16f9a3fa

View file

@ -14,7 +14,7 @@ proc send_notify*(uk: UptimeKuma, state: State, runtime: int = 0, msg: string =
status = "up"
else:
status = "down"
var message = fmt"{status}"
var message = $state
if msg != "":
message &= fmt":{msg}"
let url = fmt"{uk.base_url}?status={status}&msg={message}&ping={runtime}"