From 5deaed33edcdd8b97380e979aa3d97b2e79eaa09 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Tue, 23 Aug 2022 19:00:12 +0200 Subject: Minor fixes --- src/Server.ts | 5 ++--- src/start.ts | 4 ++++ 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": ` + ███████╗ ██████╗ ███████╗███████╗ ██████╗ ██████╗ ██████╗ ██████╗ ██╔════╝██╔═══██╗██╔════╝██╔════╝██╔════╝██╔═══██╗██╔══██╗██╔══██╗ █████╗ ██║ ██║███████╗███████╗██║ ██║ ██║██████╔╝██║ ██║ ██╔══╝ ██║ ██║╚════██║╚════██║██║ ██║ ██║██╔══██╗██║ ██║ -- cgit 1.4.1