Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 52 additions & 2 deletions api/src/core/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,57 @@ export const runAPI = async (express, app, __dirname, isPrimary = true) => {
reusePort: env.instanceCount > 1 || undefined
}, () => {
if (isPrimary) {
console.log(`\n` +
const cobaltBoot = [
"",
`${Bright(Cyan("cobalt ")) + Bright("API ^ω^")}`,
"~~~~~~",
`${Bright("version: ") + version}`,
`${Bright("commit: ") + git.commit}`,
`${Bright("branch: ") + git.branch}`,
`${Bright("remote: ") + git.remote}`,
`${Bright("start time: ") + startTime.toUTCString()}`,
"~~~~~~",
`${Bright("url: ") + Bright(Cyan(env.apiURL))}`,
`${Bright("port: ") + env.apiPort}`
];
const meowbaltArt = [
" rrWW** ",
' cc++ vv&&@@&&ss ',
" MM@@%%ss WW@@AA##&&~~ ",
' --%%##&&@@zzAA&&## **@@GG ',
' zz@@rr~~##KKAAzz~~vvoo##NN ',
" WW@@^^rr--ookkkk cc## ++^^",
' ##@@ss.. **~~ zzHH--zz^^// ',
' ##@@**..++ ~~AA..zzcc~~ ',
' ZZNN ssGGMMoo ** ^^^^ ',
' **GG ZZ -- .... rr//vv**',
' ..zzssrr --AA-- rr ',
'**//rr-- --// oorr** ',
' ooAA-- ++rr^^ ^^~~ ',
' AAcc**vv**//ooMMkkoo.. vv ',
' //OO ~~rrssccAAcc^^ ^^~~ ',
' //ss ..++MM cc ',
' oo rrHHoooo.. ',
' ^^oo vvAA ',
' ..vvoooooooooocc++',
];

//Get the which block of text is bigger
const maxLines = Math.max(cobaltBoot.length, meowbaltArt.length);

//Spacing
console.log('');

for (let i = 0; i < maxLines; i++) { //Then draw both
const meowLine = i < meowbaltArt.length ? meowbaltArt[i] : ' '.repeat(meowbaltArt[0].length);
const infoLine = i < cobaltBoot.length ? cobaltBoot[i] : '';
console.log(`${meowLine} ${infoLine}`);
}

//More spacing
console.log('');

/*console.log(`\n` +
Bright(Cyan("cobalt ")) + Bright("API ^ω^") + "\n" +

"~~~~~~\n" +
Expand All @@ -368,7 +418,7 @@ export const runAPI = async (express, app, __dirname, isPrimary = true) => {

Bright("url: ") + Bright(Cyan(env.apiURL)) + "\n" +
Bright("port: ") + env.apiPort + "\n"
);
);*/
}

if (env.apiKeyURL) {
Expand Down
Loading