From 0f30ae9bb324b09212a6ecb4652611bc31b205e8 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Fri, 19 May 2023 19:11:59 -0600 Subject: [PATCH] swaws --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index 3a9e90e..8b1645e 100644 --- a/index.js +++ b/index.js @@ -149,8 +149,10 @@ function updateStatus(addr, port, msg) { "gameId": "573090" } } + console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} Checking ${addr}:${port}`); checkServer(`${addr}:${port}`).then((data) => { if (data.status) { + console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} ${addr}:${port} is online.`); serverStatus[`${addr}:${port}`] = data; embed = { "title": data.name, @@ -193,6 +195,7 @@ function updateStatus(addr, port, msg) { console.log(err) }); } else { + console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} ${addr}:${port} is offline.`); // Server is offline, modify embed slightly and edit it data2 = serverStatus[`${addr}:${port}`]; embed = {