From f8741e3956aa0ef04660ea29f146072d938fbd9c Mon Sep 17 00:00:00 2001 From: Hirzi <64255651+HirziDevs@users.noreply.github.com> Date: Wed, 14 Jul 2021 11:30:49 +0700 Subject: [PATCH] Update ready.js --- events/ready.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/events/ready.js b/events/ready.js index 1ce96b8..d904517 100644 --- a/events/ready.js +++ b/events/ready.js @@ -77,6 +77,7 @@ module.exports = client => { } }).then((response) => { db.set(data.nameid, '**' + data.name + '**' + ': ' + statusonline) + if(db.get(data.nameid) === null) console.log(chalk.cyan('[PteroStats Checker] ') + chalk.green('Added Node ' + data.name + ' to databases')) }).catch((err) => { db.set(data.nameid, '**' + data.name + '**' + ': ' + statusoffline) console.log(chalk.cyan('[PteroStats Checker] ') + chalk.red(data.name + ' is down!')) @@ -84,7 +85,7 @@ module.exports = client => { }) let msgStats = db.get(data.nameid) + '\n' - if (db.get(data.nameid) === null) msgStats = data.name + ' : ' + checking + if (db.get(data.nameid) === null) msgStats = '**' + data.name + '** : ' + checking + '\n' if (debug === true) console.log(chalk.magenta('[PteroStats Debug] ') + chalk.blue(msgStats)) list.push(msgStats) })