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
89a2ae8e91
commit
e3aaceef3f
1 changed files with 5 additions and 11 deletions
|
@ -46,17 +46,11 @@ Time (${heartbeatJSON["timezone"]}): ${heartbeatJSON["localDateTime"]}`,
|
||||||
bot_id: notification.botId,
|
bot_id: notification.botId,
|
||||||
type: "text",
|
type: "text",
|
||||||
message:
|
message:
|
||||||
"UptimeKuma Alert:\n" +
|
`UptimeKuma Alert:
|
||||||
"[🟢 Up]\n" +
|
[🟢 Up]
|
||||||
"Name: " +
|
Name: ${monitorJSON["name"]}
|
||||||
monitorJSON["name"] +
|
${heartbeatJSON["msg"]}
|
||||||
"\n" +
|
Time (${heartbeatJSON["timezone"]}): ${heartbeatJSON["localDateTime"]}`,
|
||||||
heartbeatJSON["msg"] +
|
|
||||||
"\n" +
|
|
||||||
"Time (" +
|
|
||||||
heartbeatJSON["timezone"] +
|
|
||||||
"): " +
|
|
||||||
heartbeatJSON["localDateTime"],
|
|
||||||
};
|
};
|
||||||
await axios.post(url, upMessage, config);
|
await axios.post(url, upMessage, config);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue