summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Server.ts5
-rw-r--r--src/start.ts4
-rw-r--r--src/util/util/Logo.ts5
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": `
+			███████╗ ██████╗ ███████╗███████╗ ██████╗ ██████╗ ██████╗ ██████╗
             ██╔════╝██╔═══██╗██╔════╝██╔════╝██╔════╝██╔═══██╗██╔══██╗██╔══██╗
             █████╗  ██║   ██║███████╗███████╗██║     ██║   ██║██████╔╝██║  ██║
             ██╔══╝  ██║   ██║╚════██║╚════██║██║     ██║   ██║██╔══██╗██║  ██║