diff --git a/src/db/connect.js b/src/db/connect.js index 1c4bd42..0b184fd 100644 --- a/src/db/connect.js +++ b/src/db/connect.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); }; \ No newline at end of file diff --git a/src/handle/startup/run/collect.js b/src/handle/startup/run/collect.js new file mode 100644 index 0000000..06b9462 --- /dev/null +++ b/src/handle/startup/run/collect.js @@ -0,0 +1 @@ +module.exports = () => {}; \ No newline at end of file diff --git a/src/handle/startup/run/hello.js b/src/handle/startup/run/hello.js new file mode 100644 index 0000000..5e1af27 --- /dev/null +++ b/src/handle/startup/run/hello.js @@ -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)`); +}; \ No newline at end of file