Skip to content

api.js: add meowbalt to startup #1195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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