summary refs log tree commit diff
path: root/src/gateway
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-10-31 13:16:29 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-10-31 13:17:21 +1100
commit49ae07ff297b0cffbb667d627320092a1022230c (patch)
tree5d5bdb1682052612f0b460777d7714b5502834b4 /src/gateway
parentAdd token check back to loginRedirect (diff)
downloadserver-49ae07ff297b0cffbb667d627320092a1022230c.tar.xz
Allow running api, cdn, gateway separately
Diffstat (limited to 'src/gateway')
-rw-r--r--src/gateway/Server.ts3
1 files changed, 2 insertions, 1 deletions
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}`);