end of console status logs

v2
Kit Kasune 2 years ago
parent c1d40eb1be
commit cb0d1d8622
  1. 3
      src/db/connect.js
  2. 1
      src/handle/startup/run/collect.js
  3. 10
      src/handle/startup/run/hello.js

@ -1,7 +1,6 @@
const chalk = require('chalk');
const mongoose = require('mongoose');
const log = require('../util/log/log');
const ora = require('../util/log/ora');
module.exports = async client => {
@ -20,5 +19,5 @@ module.exports = async client => {
client.warn("Database not connected, considering runtime to be unusable and exiting.", 0, true, true);
throw new Error();
}
return client.success(`Connected to Mongo Database in ${chalk.white(`${Date.now() - t}ms`)}.`);
return client.success(`Connected to Mongo Database in ${chalk.white(`${Date.now() - t}ms`)}.`, 0, 0, 1);
};

@ -0,0 +1 @@
module.exports = () => {};

@ -0,0 +1,10 @@
const moment = require("moment");
const chalk = require('chalk');
const os = require('os');
module.exports = client => {
client.log(`Logged in as ${chalk.blueBright(client.user.username)}. ${chalk.greenBright(`[${chalk.grey(client.user.id)}]`)}`);
client.log(`Time: ${chalk.blueBright(moment().format('MMMM d, YYYY - HH:MM:SS'))}`);
client.log(`Running on ${chalk.blueBright(client.guilds.cache.size)} ${chalk.blue("servers")} and interacting with about ${chalk.blueBright(client.users.cache.size)} ${chalk.blue("users")}.`);
client.log(`This ${chalk.blue('heap')} has ${chalk.blueBright((process.memoryUsage().heapTotal / (1024 ** 2)).toFixed(2))}MB allocated; The ${chalk.blue('machine')} has ${chalk.blueBright((os.totalmem() / (1024 ** 3)).toFixed(2))}GB (${chalk.blueBright((os.freemem() / (1024 ** 3)).toFixed(2))}GB free)`);
};
Loading…
Cancel
Save