|
|
@ -124,7 +124,7 @@ class Notification {
|
|
|
|
await axios.post(notification.discordWebhookUrl, discorddowndata)
|
|
|
|
await axios.post(notification.discordWebhookUrl, discorddowndata)
|
|
|
|
return okMsg;
|
|
|
|
return okMsg;
|
|
|
|
|
|
|
|
|
|
|
|
} else if (heartbeatJSON["status"] == 1) {
|
|
|
|
} if (heartbeatJSON["status"] == 1) {
|
|
|
|
let discordupdata = {
|
|
|
|
let discordupdata = {
|
|
|
|
username: notification.discordUsername || "Uptime Kuma",
|
|
|
|
username: notification.discordUsername || "Uptime Kuma",
|
|
|
|
embeds: [{
|
|
|
|
embeds: [{
|
|
|
|