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:58:30 +07:00 committed by GitHub
parent 89a2ae8e91
commit e3aaceef3f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -46,17 +46,11 @@ Time (${heartbeatJSON["timezone"]}): ${heartbeatJSON["localDateTime"]}`,
bot_id: notification.botId,
type: "text",
message:
"UptimeKuma Alert:\n" +
"[🟢 Up]\n" +
"Name: " +
monitorJSON["name"] +
"\n" +
heartbeatJSON["msg"] +
"\n" +
"Time (" +
heartbeatJSON["timezone"] +
"): " +
heartbeatJSON["localDateTime"],
`UptimeKuma Alert:
[🟢 Up]
Name: ${monitorJSON["name"]}
${heartbeatJSON["msg"]}
Time (${heartbeatJSON["timezone"]}): ${heartbeatJSON["localDateTime"]}`,
};
await axios.post(url, upMessage, config);
}