From 9a7a43a725adcf1b409f494e587bc2aa453c64ef Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Mon, 31 Oct 2022 13:16:29 +1100 Subject: Allow running api, cdn, gateway separately --- src/gateway/Server.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gateway/Server.ts') diff --git a/src/gateway/Server.ts b/src/gateway/Server.ts index 7e1489be..8c416b92 100644 --- a/src/gateway/Server.ts +++ b/src/gateway/Server.ts @@ -1,7 +1,7 @@ import "missing-native-js-functions"; import dotenv from "dotenv"; dotenv.config(); -import { closeDatabase, Config, initDatabase, initEvent } from "@fosscord/util"; +import { BannedWords, closeDatabase, Config, initDatabase, initEvent } from "@fosscord/util"; import ws from "ws"; import { Connection } from "./events/Connection"; import http from "http"; @@ -50,6 +50,7 @@ export class Server { await initDatabase(); await Config.init(); await initEvent(); + await BannedWords.init(); if (!this.server.listening) { this.server.listen(this.port); console.log(`[Gateway] online on 0.0.0.0:${this.port}`); -- cgit 1.5.1