fix console startup timing

master
Kit Kasune 3 years ago
parent 2875e52a65
commit 48165393ec
  1. 2
      bot.js
  2. 2
      events/ready.js

@ -99,7 +99,5 @@ async function init() {
await require('./util/wait')(5000); await require('./util/wait')(5000);
if (!client.misc.readied) {client.misc.forcedReady = true; await require('./events/ready')(client);} if (!client.misc.readied) {client.misc.forcedReady = true; await require('./events/ready')(client);}
require('./console')(client);
} }
init().then(() => {}); init().then(() => {});

@ -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).`)}`); 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(); await botData.save();
require('../console')(client);
}; };
Loading…
Cancel
Save