Update server/notification-providers/onechat.js

Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
Pargorn Ruasijan 2025-01-25 15:50:57 +07:00 committed by GitHub
parent 28f4fb233f
commit 89a2ae8e91
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -33,17 +33,11 @@ class OneChat extends NotificationProvider {
bot_id: notification.botId,
type: "text",
message:
"UptimeKuma Alert:\n" +
"[🔴 Down]\n" +
"Name: " +
monitorJSON["name"] +
"\n" +
heartbeatJSON["msg"] +
"\n" +
"Time (" +
heartbeatJSON["timezone"] +
"): " +
heartbeatJSON["localDateTime"],
`UptimeKuma Alert:
[🔴 Down]
Name: ${monitorJSON["name"]}
${heartbeatJSON["msg"]}
Time (${heartbeatJSON["timezone"]}): ${heartbeatJSON["localDateTime"]}`,
};
await axios.post(url, downMessage, config);
} else if (heartbeatJSON["status"] === UP) {