From 8d3ffe3ea422272e1a243ded870b5bfb68e23134 Mon Sep 17 00:00:00 2001 From: wukko Date: Sat, 17 Dec 2022 17:40:20 +0600 Subject: [PATCH] updated the startup message one more time --- src/cobalt.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cobalt.js b/src/cobalt.js index 4b9d534d..82f4bb9c 100644 --- a/src/cobalt.js +++ b/src/cobalt.js @@ -172,7 +172,8 @@ if (fs.existsSync('./.env') && process.env.selfURL && process.env.streamSalt && res.redirect('/') }); app.listen(process.env.port, () => { - console.log(`\n${Cyan(appName)} ${Bright(`v.${version}-${commitHash}`)}\n\nURL: ${Cyan(`${process.env.selfURL}`)}\nPort: ${process.env.port}\nStart time: ${Bright(new Date().toUTCString())}\n`) + let startTime = new Date(); + console.log(`\n${Cyan(appName)} ${Bright(`v.${version}-${commitHash}`)}\nStart time: ${Bright(`${startTime.toUTCString()} (${Math.floor(new Date().getTime())})`)}\n\nURL: ${Cyan(`${process.env.selfURL}`)}\nPort: ${process.env.port}\n`) }); } else { console.log(Red(`cobalt hasn't been configured yet or configuration is invalid.\n`) + Bright(`please run the setup script to fix this: `) + Green(`npm run setup`))