From e9e978839da1e5195d0dfbe21b2aaaaadf7862ed Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Thu, 16 Dec 2021 16:05:15 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D1=81=D0=BA=D1=80=D0=B8=D0=BF=D1=82=D0=BE?= =?UTF-8?q?=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/create-db-indexes.js | 2 +- scripts/verify-config.js | 19 +++++++++---------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/scripts/create-db-indexes.js b/scripts/create-db-indexes.js index a3ab6814..196813c5 100644 --- a/scripts/create-db-indexes.js +++ b/scripts/create-db-indexes.js @@ -1,5 +1,5 @@ const chalk = require("chalk"); -console.log(chalk.blue("Migrating database from v4.6.4 to v4.7.0...\n\n")); +console.log(chalk.blue("Creating database indexes...\n\n")); let MongoClient; diff --git a/scripts/verify-config.js b/scripts/verify-config.js index a4096970..2e8c36a6 100644 --- a/scripts/verify-config.js +++ b/scripts/verify-config.js @@ -14,7 +14,7 @@ const checks = [ console.log("\n\nEnvironnement"); return new Promise((res) => { if (parseInt(process.version.split(".")[0].split("v")[1]) >= 12) { - success("node.js version should be equal or higher than v12"); + success("node.js version equal or higher than v12"); } else { error("node.js version should be equal or higher than v12"); }; @@ -34,7 +34,7 @@ const checks = [ if (!client.guilds.cache.has("568120814776614924")) { error("should be added to the emojis server", "please add your bot on this server: https://emojis.atlanta-bot.fr to make the emojis working"); } else { - success("should be added to the emojis server"); + success("added to the emojis server"); }; res(); }).catch(() => { @@ -54,7 +54,7 @@ const checks = [ useUnifiedTopology: true }); client.connect().then(async () => { - success("should be able to connect to Mongo database"); + success("Connection to Mongo database success"); res(); }).catch(() => { error("should be able to connect to Mongo database", "please verify if the MongoDB server is started"); @@ -78,7 +78,7 @@ const checks = [ if (result.status === 401) { error("should be a valid Amethyste API key", "get your key here: https://api.amethyste.moe/"); } else { - success("should be a valid Amethyste API key"); + success("valid Amethyste API key"); }; } if (!config.apiKeys.blagueXYZ) { @@ -93,7 +93,7 @@ const checks = [ if (result.status === 401) { error("should be a valid blague.xyz key", "get your key here: https://blague.xyz/"); } else { - success("should be a valid blague.xyz key"); + success("valid blague.xyz key"); }; }; if (!config.apiKeys.dbl) { @@ -109,7 +109,7 @@ const checks = [ if (result.error && result.error === "Unauthorized") { error("should be a valid DBL key", "get your key here: https://top.gg/ OR delete the key from the config if you don't have a key"); } else { - success("should be a valid DBL key"); + success("valid DBL key"); }; }; if (!config.apiKeys.fortniteFNBR) { @@ -124,7 +124,7 @@ const checks = [ if (result.status && result.status === 401) { error("should be a valid FNBR key", "get your key here: https://fnbr.co/api/docs"); } else { - success("should be a valid FNBR key"); + success("valid FNBR key"); }; }; if (!config.apiKeys.sentryDSN) { @@ -136,7 +136,7 @@ const checks = [ await delay(1000); success("should be a valid Sentry DSN key"); } catch (e) { - error("should be a valid Sentry DSN key", "Sentry is not recommended, delete the key from the config"); + error("valid Sentry DSN key", "Sentry is not recommended, delete the key from the config"); }; }; resolve(); @@ -169,7 +169,7 @@ const checks = [ if (isPortTaken) { error("dashboard port should be available", "you have probably another process using this port"); } else { - success("dashboard port should be available"); + success("dashboard port is available"); }; }; resolve(); @@ -182,6 +182,5 @@ const checks = [ for (const check of checks) { await check(); }; - console.log(chalk.yellow("\n\nThank you for using Atlanta. If you need more help, join our support server here: https://discord.atlanta-bot.fr")); process.exit(0); })(); \ No newline at end of file