From 1842dc3cb3d5a5be3a08a893158035f05cede768 Mon Sep 17 00:00:00 2001 From: ShreshthTiwari <68736752+ShreshthTiwari@users.noreply.github.com> Date: Tue, 11 Jul 2023 19:22:50 +0530 Subject: [PATCH] Update ready.js --- events/ready.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/events/ready.js b/events/ready.js index 1a5a0ed..80091d2 100644 --- a/events/ready.js +++ b/events/ready.js @@ -24,11 +24,13 @@ module.exports = { ) ); - if (client.guilds.cache.size < 1) + if (client.guilds.cache.size < 1) { return console.log( chalk.cyan("[PteroStats] ") + chalk.red("Error! This bot is not on any discord servers") ); + } + if (client.config.timeout < 1) { console.log( chalk.cyan("[PteroStats] ") + @@ -37,12 +39,12 @@ module.exports = { client.config.timeout = 1; } - if (client.config.refresh > 1 && client.config.refresh < 10) + if (client.config.refresh >= 1 && client.config.refresh <= 10) { console.log( chalk.cyan("[PteroStats] ") + chalk.red("Refresh Time below 10 seconds is not recommended!") ); - else if (client.config.refresh < 1) { + } else if (client.config.refresh < 1) { console.log( chalk.cyan("[PteroStats] ") + chalk.red("Refresh Time cannot be less than 1 seconds!")