From bddbd9cd36fd9bc88ad86056e05606724ce0e8db Mon Sep 17 00:00:00 2001 From: rainbow napkin Date: Thu, 16 Oct 2025 07:41:13 -0400 Subject: [PATCH] More welcome wagon beautification. --- src/schemas/statSchema.js | 3 ++- src/server.js | 2 +- src/utils/loggerUtils.js | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/schemas/statSchema.js b/src/schemas/statSchema.js index e7da67a..8c680c3 100644 --- a/src/schemas/statSchema.js +++ b/src/schemas/statSchema.js @@ -19,6 +19,7 @@ const {mongoose} = require('mongoose'); //Local Imports const config = require('./../../config.json'); +const tokeSchema = require('./tokebot/tokeSchema'); const loggerUtils = require('./../utils/loggerUtils'); /** @@ -95,7 +96,7 @@ statSchema.statics.incrementLaunchCount = async function(){ this.firstLaunch = stats.firstLaunch; //print bootup message to console. - loggerUtils.welcomeWagon(stats.launchCount, stats.firstLaunch); + loggerUtils.welcomeWagon(stats.launchCount, stats.firstLaunch, tokeSchema.count); } /** diff --git a/src/server.js b/src/server.js index 1799b24..43a1f57 100644 --- a/src/server.js +++ b/src/server.js @@ -222,6 +222,6 @@ async function asyncKickStart(){ //Listen Function webServer.listen(port, () => { - console.log(`Tokes up on port \x1b[4m\x1b[35m${port}\x1b[0m!`); + console.log(`Tokes up on port \x1b[4m\x1b[35m${port}\x1b[0m!\n`); }); } \ No newline at end of file diff --git a/src/utils/loggerUtils.js b/src/utils/loggerUtils.js index 2ae399e..eb51977 100644 --- a/src/utils/loggerUtils.js +++ b/src/utils/loggerUtils.js @@ -211,7 +211,7 @@ module.exports.dumpError = async function(err, date = new Date()){ } } -module.exports.welcomeWagon = function(count, date){ +module.exports.welcomeWagon = function(count, date, tokes){ //Inject values into ascii art const art = ` \x1b[32m ! \x1b[0m @@ -225,7 +225,7 @@ module.exports.welcomeWagon = function(count, date){ \x1b[32m WEE EEE EED\x1b[0m C A A N NN O O P Y \x1b[32m WEEEEED\x1b[0m CCCC A A N NN OOO P Y \x1b[32m WEEE ! EEED\x1b[0m -\x1b[32m !\x1b[0m \x1b[34mInitialization Complete!\x1b[0m This server has booted \x1b[4m${count}\x1b[0m time${count == 1 ? '' : 's'}. +\x1b[32m !\x1b[0m \x1b[34mInitialization Complete!\x1b[0m This server has booted \x1b[4m${count}\x1b[0m time${count == 1 ? '' : 's'} and taken ${tokes} \x1b[4mtoke${tokes == 1 ? '' : 's'}\x1b[0m. \x1b[32m !\x1b[0m This server was first booted on \x1b[4m${date}\x1b[0m.` //Dump art to console