More welcome wagon beautification.
This commit is contained in:
parent
cb3fc9bb91
commit
bddbd9cd36
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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`);
|
||||
});
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue