From 48165393eca1399283e162c8cd30c21382f6a8bc Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Mon, 20 Dec 2021 17:21:21 -0700 Subject: [PATCH] fix console startup timing --- bot.js | 2 -- events/ready.js | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.js b/bot.js index 64c0a73..b55b382 100644 --- a/bot.js +++ b/bot.js @@ -99,7 +99,5 @@ async function init() { await require('./util/wait')(5000); if (!client.misc.readied) {client.misc.forcedReady = true; await require('./events/ready')(client);} - - require('./console')(client); } init().then(() => {}); \ No newline at end of file diff --git a/events/ready.js b/events/ready.js index 57d990d..49f47c7 100644 --- a/events/ready.js +++ b/events/ready.js @@ -111,4 +111,6 @@ module.exports = async client => { console.log(`${chalk.gray('\n[INFO]')} >> ${chalk.white(`Startup completed in ${cms - client.misc.startup.getTime() - (client.misc.forcedReady ? 5000 : 0)}ms (${cms - client.misc.startupNoConnect.getTime() - (client.misc.forcedReady ? 5000 : 0)}ms post-connect).`)}`); await botData.save(); + + require('../console')(client); }; \ No newline at end of file