mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-24 02:15:59 +03:00
Updated discord embeds
This commit is contained in:
parent
dadc270876
commit
3a7414125a
1 changed files with 0 additions and 14 deletions
|
@ -83,8 +83,6 @@ class Notification {
|
|||
return await Notification.smtp(notification, msg)
|
||||
|
||||
} else if (notification.type === "discord") {
|
||||
let kumaURL = notification.discorduptimekumaUrl || "https://github.com/louislam/uptime-kuma";
|
||||
let dashboardURL = notification.discorduptimekumaUrl + '/dashboard/' + monitorJSON["id"];
|
||||
try {
|
||||
// If heartbeatJSON is null, assume we're testing.
|
||||
if (heartbeatJSON == null) {
|
||||
|
@ -120,14 +118,6 @@ class Notification {
|
|||
name: "Error",
|
||||
value: heartbeatJSON["msg"],
|
||||
},
|
||||
{
|
||||
name: "Visit Service Dashboard",
|
||||
value: "[Visit Dashboard]("+ dashboardURL + ")",
|
||||
},
|
||||
{
|
||||
name: "Visit Uptime Kuma",
|
||||
value: "[Visit]("+ kumaURL +")",
|
||||
},
|
||||
],
|
||||
}],
|
||||
}
|
||||
|
@ -158,10 +148,6 @@ class Notification {
|
|||
name: "Ping",
|
||||
value: heartbeatJSON["ping"] + "ms",
|
||||
},
|
||||
{
|
||||
name: "Visit Uptime Kuma",
|
||||
value: "[Visit]("+ kumaURL +")",
|
||||
},
|
||||
],
|
||||
}],
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue