mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-22 02:12:40 +01:00
Minor fixes
This commit is contained in:
parent
e11017b6c2
commit
5deaed33ed
@ -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!")}`);
|
||||
|
@ -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 {
|
||||
|
@ -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": `
|
||||
███████╗ ██████╗ ███████╗███████╗ ██████╗ ██████╗ ██████╗ ██████╗
|
||||
██╔════╝██╔═══██╗██╔════╝██╔════╝██╔════╝██╔═══██╗██╔══██╗██╔══██╗
|
||||
█████╗ ██║ ██║███████╗███████╗██║ ██║ ██║██████╔╝██║ ██║
|
||||
██╔══╝ ██║ ██║╚════██║╚════██║██║ ██║ ██║██╔══██╗██║ ██║
|
||||
|
Loading…
Reference in New Issue
Block a user