diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-08-23 19:00:12 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-09-04 10:48:54 +0200 |
commit | 5deaed33edcdd8b97380e979aa3d97b2e79eaa09 (patch) | |
tree | 9b9108ff4c3af0c443410ff3bd79a60f6f84ada4 | |
parent | New db migration script - multiplatform, fix mariadb migrations (diff) | |
download | server-5deaed33edcdd8b97380e979aa3d97b2e79eaa09.tar.xz |
Minor fixes
-rw-r--r-- | src/Server.ts | 5 | ||||
-rw-r--r-- | src/start.ts | 4 | ||||
-rw-r--r-- | src/util/util/Logo.ts | 5 |
3 files changed, 9 insertions, 5 deletions
diff --git a/src/Server.ts b/src/Server.ts index ce7886b9..5d7e93e1 100644 --- a/src/Server.ts +++ b/src/Server.ts @@ -4,10 +4,9 @@ process.on("uncaughtException", console.error); import * as Api from "@fosscord/api"; import { CDNServer } from "@fosscord/cdn"; import * as Gateway from "@fosscord/gateway"; -import { Config, getOrInitialiseDatabase } from "@fosscord/util"; +import { Config, getOrInitialiseDatabase, PluginLoader } from "@fosscord/util"; import * as Sentry from "@sentry/node"; import * as Tracing from "@sentry/tracing"; -import { PluginLoader } from "@fosscord/util"; import express from "express"; import http from "http"; import { bold, green, yellow } from "picocolors"; @@ -36,7 +35,7 @@ async function main() { await getOrInitialiseDatabase(); await Config.init(); await PluginConfig.init(); - + let cfg = Config.get(); //Sentry if (cfg.sentry.enabled) { console.log(`[Bundle] ${yellow("You are using Sentry! This may slightly impact performance on large loads!")}`); diff --git a/src/start.ts b/src/start.ts index 047b3cf6..7059d726 100644 --- a/src/start.ts +++ b/src/start.ts @@ -9,6 +9,10 @@ import { initStats } from "./stats"; import { Logo } from "./util"; config(); +if (process.env.DB_MIGRATE) { + console.log = () => {}; +} + // TODO: add socket event transmission let cores = 1; try { diff --git a/src/util/util/Logo.ts b/src/util/util/Logo.ts index 3e108af2..9b3c3e1e 100644 --- a/src/util/util/Logo.ts +++ b/src/util/util/Logo.ts @@ -5,7 +5,7 @@ export class Logo { public static printLogo() { if (existsSync("/usr/bin/chafa")) return execSync( - "chafa https://raw.githubusercontent.com/fosscord/fosscord/master/assets-rebrand/svg/Fosscord-Wordmark-Orange.svg", + "chafa https://raw.githubusercontent.com/fosscord/fosscord/master/assets-rebrand/svg/Fosscord-Wordmark-Orange.svg -s 70", { env: process.env, encoding: "utf-8", @@ -29,7 +29,8 @@ export class Logo { return 1; } private static logoVersions: any = { - "1": `███████╗ ██████╗ ███████╗███████╗ ██████╗ ██████╗ ██████╗ ██████╗ + "1": ` + ███████╗ ██████╗ ███████╗███████╗ ██████╗ ██████╗ ██████╗ ██████╗ ██╔════╝██╔═══██╗██╔════╝██╔════╝██╔════╝██╔═══██╗██╔══██╗██╔══██╗ █████╗ ██║ ██║███████╗███████╗██║ ██║ ██║██████╔╝██║ ██║ ██╔══╝ ██║ ██║╚════██║╚════██║██║ ██║ ██║██╔══██╗██║ ██║ |