summary refs log tree commit diff
path: root/src/bundle/start.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-25 18:24:21 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-25 23:35:18 +1000
commitf44f5d7ac2d24ff836c2e1d4b2fa58da04b13052 (patch)
treea6655c41bb3db79c30fd876b06ee60fe9cf70c9b /src/bundle/start.ts
parentAllow edited_timestamp to passthrough in handleMessage (diff)
downloadserver-f44f5d7ac2d24ff836c2e1d4b2fa58da04b13052.tar.xz
Refactor to mono-repo + upgrade packages
Diffstat (limited to '')
-rw-r--r--src/bundle/start.ts (renamed from bundle/src/start.ts)15
1 files changed, 7 insertions, 8 deletions
diff --git a/bundle/src/start.ts b/src/bundle/start.ts

index de3b5848..2a1e6520 100644 --- a/bundle/src/start.ts +++ b/src/bundle/start.ts
@@ -1,4 +1,5 @@ // process.env.MONGOMS_DEBUG = "true"; +require('module-alias/register'); import "reflect-metadata"; import cluster, { Worker } from "cluster"; import os from "os"; @@ -13,7 +14,7 @@ var cores = 1; try { cores = Number(process.env.THREADS) || os.cpus().length; } catch { - console.log("[API] Failed to get thread count! Using 1...") + console.log("[API] Failed to get thread count! Using 1..."); } if (cluster.isMaster) { @@ -36,18 +37,16 @@ if (cluster.isMaster) { ╚═╝ ╚═════╝ ╚══════╝╚══════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═════╝ fosscord-server | ${yellow( - `Pre-release (${ - commit !== null - ? commit.slice(0, 7) - : "Unknown (Git cannot be found)" + `Pre-release (${commit !== null + ? commit.slice(0, 7) + : "Unknown (Git cannot be found)" })` )} -Commit Hash: ${ - commit !== null +Commit Hash: ${commit !== null ? `${cyan(commit)} (${yellow(commit.slice(0, 7))})` : "Unknown (Git cannot be found)" - } + } Cores: ${cyan(os.cpus().length)} (Using ${cores} thread(s).) `) );