From 8b7f22349378d97a445c7f90436ad9bf1de62f92 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Sun, 12 May 2024 02:06:17 -0600 Subject: [PATCH] Use GET for uptime-kuma --- index.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/index.js b/index.js index 2bce90d..a2fa606 100644 --- a/index.js +++ b/index.js @@ -433,16 +433,12 @@ xmpp.on("stanza", (stanza) => { xmpp.on("online", async (address) => { if (config["uptime-kuma"].enabled) { - fetch(config["uptime-kuma"].url, { - method: 'POST' - }).then(() => { + fetch(config["uptime-kuma"].url).then(() => { console.log(`${colors.cyan("[INFO]")} Sent heartbeat to Uptime Kuma`) }) setInterval(() => { // Send POST request to config["uptime-kuma"].url - fetch(config["uptime-kuma"].url, { - method: 'POST' - }).then(() => { + fetch(config["uptime-kuma"].url).then(() => { console.log(`${colors.cyan("[INFO]")} Sent heartbeat to Uptime Kuma`) }) }, config["uptime-kuma"].interval * 1000) // Every X seconds