From a9770ec66c5dd1053672473d2ca4d0128d9812db Mon Sep 17 00:00:00 2001 From: DJj123dj <80536295+DJj123dj@users.noreply.github.com> Date: Mon, 2 May 2022 15:02:27 +0200 Subject: [PATCH] Update slashEnable.js --- core/slashSystem/slashEnable.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/core/slashSystem/slashEnable.js b/core/slashSystem/slashEnable.js index df9e2c5..7fbb6bb 100644 --- a/core/slashSystem/slashEnable.js +++ b/core/slashSystem/slashEnable.js @@ -24,14 +24,16 @@ module.exports = async () => { var readystats = 0 + process.stdout.write("[status] there are "+chalk.blue("0 out of 9")+" commands ready! (this can take up to 40 seconds)") setInterval(() => { - console.log("[status] there are "+chalk.blue(readystats+" out of 9")+" commands ready! (this can take some time)") + process.stdout.cursorTo(0) + process.stdout.write("[status] there are "+chalk.blue(readystats+" out of 9")+" commands ready! (this can take up to 40 seconds)") if (readystats >= 9){ - console.log(chalk.green("ready!")) - console.log(chalk.blue("you can now start the bot with 'npm start'!")) + console.log(chalk.green("\nready!")) + console.log(chalk.bgBlue("you can now start the bot with 'npm start'!")) process.exit(1) } - },1000) + },100) //create a ticket (/new or /ticket) client.application.commands.create({