1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-25 19:52:36 +01:00

Minor fixes

This commit is contained in:
TheArcaneBrony 2022-08-23 19:00:12 +02:00
parent e11017b6c2
commit 5deaed33ed
No known key found for this signature in database
GPG Key ID: 32FC5AAADAD75A22
3 changed files with 9 additions and 5 deletions

View File

@ -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!")}`);

View File

@ -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 {

View File

@ -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": `