From 8769c7625cafd14e6f304601cc99a195e833d38b Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Sat, 13 Aug 2022 17:16:23 +0200 Subject: Fix config table, add plugin events, implement onPreMessageEvent, add http error data field, migrations --- src/gateway/Server.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gateway/Server.ts') diff --git a/src/gateway/Server.ts b/src/gateway/Server.ts index 97da3fa0..60a82d8f 100644 --- a/src/gateway/Server.ts +++ b/src/gateway/Server.ts @@ -3,6 +3,8 @@ import dotenv from "dotenv"; import http from "http"; import ws from "ws"; import { Connection } from "./events/Connection"; +import http from "http"; +import { PluginConfig } from "util/plugin/PluginConfig"; dotenv.config(); export class Server { @@ -40,6 +42,7 @@ export class Server { async start(): Promise { await getOrInitialiseDatabase(); await Config.init(); + await PluginConfig.init(); await initEvent(); if (!this.server.listening) { this.server.listen(this.port); -- cgit 1.5.1