mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 23:04:04 +00:00
run eslint for discord enhancement
This commit is contained in:
parent
4469b3a19b
commit
2677f5dd87
1 changed files with 56 additions and 56 deletions
|
@ -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: [{
|
||||||
|
@ -138,7 +138,7 @@ class Notification {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Service URL",
|
name: "Service URL",
|
||||||
value: "[Visit Service]("+ monitorJSON["url"] +")",
|
value: "[Visit Service](" + monitorJSON["url"] + ")",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Time (UTC)",
|
name: "Time (UTC)",
|
||||||
|
|
Loading…
Reference in a new issue