mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-02-22 19:45:56 +00:00
Update server/notification-providers/onechat.js
Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
parent
28f4fb233f
commit
89a2ae8e91
1 changed files with 5 additions and 11 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue