From 63251383d8f700f8280ad173d6e0c796824bc30b Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Fri, 19 May 2023 19:17:46 -0600 Subject: [PATCH] B --- index.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/index.js b/index.js index 478a36a..2cd9aaf 100644 --- a/index.js +++ b/index.js @@ -194,15 +194,15 @@ function updateStatus(addr, port, msg) { }).then(() => { console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} ${addr}:${port} is online, edited embed.`); setTimeout(() => { - console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} Updating ${server.ip}:${server.port}`); + console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} Updating ${addr}:${port}`); updateStatus(addr, port, msg); - }, 15000) + }, 10000) }).catch((err) => { console.log(`${colors.red("[ERROR]")} ${err}`); setTimeout(() => { - console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} Updating ${server.ip}:${server.port}`); + console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} Updating ${addr}:${port}`); updateStatus(addr, port, msg); - }, 15000) + }, 10000) }); } else { console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} ${addr}:${port} is offline.`); @@ -248,15 +248,15 @@ function updateStatus(addr, port, msg) { }).then((msg) => { console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} ${addr}:${port} is offline, edited embed.`); setTimeout(() => { - console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} Updating ${server.ip}:${server.port}`); + console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} Updating ${addr}:${port}`); updateStatus(addr, port, msg); - }, 15000) + }, 10000) }).catch((err) => { console.log(`${colors.red("[ERROR]")} ${err}`); setTimeout(() => { - console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} Updating ${server.ip}:${server.port}`); + console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} Updating ${addr}:${port}`); updateStatus(addr, port, msg); - }, 15000) + }, 10000) }); } })