diff options
Diffstat (limited to 'src/gateway/Server.ts')
-rw-r--r-- | src/gateway/Server.ts | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gateway/Server.ts b/src/gateway/Server.ts index 7e1489be..48f1a7d9 100644 --- a/src/gateway/Server.ts +++ b/src/gateway/Server.ts @@ -1,7 +1,13 @@ import "missing-native-js-functions"; import dotenv from "dotenv"; dotenv.config(); -import { closeDatabase, Config, initDatabase, initEvent } from "@fosscord/util"; +import { + closeDatabase, + Config, + initDatabase, + initEvent, + Sentry, +} from "@fosscord/util"; import ws from "ws"; import { Connection } from "./events/Connection"; import http from "http"; @@ -50,6 +56,8 @@ export class Server { await initDatabase(); await Config.init(); await initEvent(); + await Sentry.init(); + if (!this.server.listening) { this.server.listen(this.port); console.log(`[Gateway] online on 0.0.0.0:${this.port}`); |