Remove ALL fosscord mentions

This commit is contained in:
Madeline
2023-03-31 15:52:33 +11:00
parent 698ad90d3e
commit 095cbf7b20
236 changed files with 441 additions and 429 deletions

View File

@@ -20,12 +20,12 @@ process.on("unhandledRejection", console.error);
process.on("uncaughtException", console.error);
import http from "http";
import * as Api from "@fosscord/api";
import * as Gateway from "@fosscord/gateway";
import { CDNServer } from "@fosscord/cdn";
import * as Api from "@spacebar/api";
import * as Gateway from "@spacebar/gateway";
import { CDNServer } from "@spacebar/cdn";
import express from "express";
import { green, bold } from "picocolors";
import { Config, initDatabase, Sentry } from "@fosscord/util";
import { Config, initDatabase, Sentry } from "@spacebar/util";
const app = express();
const server = http.createServer();
@@ -33,7 +33,7 @@ const port = Number(process.env.PORT) || 3001;
const production = process.env.NODE_ENV == "development" ? false : true;
server.on("request", app);
const api = new Api.FosscordServer({ server, port, production, app });
const api = new Api.SpacebarServer({ server, port, production, app });
const cdn = new CDNServer({ server, port, production, app });
const gateway = new Gateway.Server({ server, port, production });

View File

@@ -16,7 +16,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
export * from "@fosscord/api";
export * from "@fosscord/util";
export * from "@fosscord/gateway";
export * from "@fosscord/cdn";
export * from "@spacebar/api";
export * from "@spacebar/util";
export * from "@spacebar/gateway";
export * from "@spacebar/cdn";

View File

@@ -42,14 +42,14 @@ if (cluster.isPrimary) {
console.log(
bold(`
███████╗ ██████╗ ███████╗█████████████╗ ██████╗ █████╗ ██████╗
██╔════╝██╔═══██╗██╔════╝██╔════╝██╔════╝██╔═══██╗██╔══██╗██╔══██╗
█████╗ ██║ ██║███████╗█████████║ ██║ ██║██████╔╝██║ ██║
██╔══╝ ██║ ██║╚════██║╚════██║██║ ██║ ██║██╔══██╗██║ ██║
██║ ╚██████╔╝███████║███████║╚██████╗██████╔╝██║ ██║██████╔╝
╚═╝ ╚═════╝ ╚═════╝╚══════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═════╝
███████╗██████╗ █████╗ █████████████╗██████╗ █████╗ ██████╗
██╔════╝██╔══██╗██╔══██╗██╔════╝██╔════╝██╔══██╗██╔══██╗██╔══██╗
███████╗██████╔╝█████████║ █████╗ ██████╔╝███████║██████╔╝
╚════██║██╔═══╝ ██╔══██║██║ ██╔══╝ ██╔══██╗██╔══██║██╔══██╗
███████║██║ ██║ ██║█████████████╗██████╔╝██║ ██║██║ ██║
╚══════╝╚═╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
fosscord-server | ${yellow(
spacebar-server | ${yellow(
`Pre-release (${
commit !== null
? commit.slice(0, 7)

View File

@@ -33,7 +33,8 @@ export function initStats() {
if (process.getuid && process.getuid() === 0) {
console.warn(
red(
`[Process] Warning fosscord is running as root, this highly discouraged and might expose your system vulnerable to attackers. Please run fosscord as a user without root privileges.`,
`[Process] Warning Spacebar is running as root, this highly discouraged and might expose your system vulnerable to attackers.` +
`Please run Spacebar as a user without root privileges.`,
),
);
}