summary refs log tree commit diff
path: root/src/gateway/Server.ts
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
commit9a7a43a725adcf1b409f494e587bc2aa453c64ef (patch)
tree60d9d8191a0ccd9998ac12b46d2a26b7e5c0a126 /src/gateway/Server.ts
parentAdd token check back to loginRedirect (diff)
downloadserver-9a7a43a725adcf1b409f494e587bc2aa453c64ef.tar.xz
Allow running api, cdn, gateway separately
Diffstat (limited to 'src/gateway/Server.ts')
-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}`);