summary refs log tree commit diff
path: root/src/gateway/Server.ts
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-13 17:16:23 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2022-09-04 10:48:54 +0200
commit8769c7625cafd14e6f304601cc99a195e833d38b (patch)
tree94d37b1ef271490a032cde0605e1b1fb0fe01e0c /src/gateway/Server.ts
parentPlugins finally load! (diff)
downloadserver-8769c7625cafd14e6f304601cc99a195e833d38b.tar.xz
Fix config table, add plugin events, implement onPreMessageEvent, add
http error data field, migrations
Diffstat (limited to '')
-rw-r--r--src/gateway/Server.ts3
1 files changed, 3 insertions, 0 deletions
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<void> { await getOrInitialiseDatabase(); await Config.init(); + await PluginConfig.init(); await initEvent(); if (!this.server.listening) { this.server.listen(this.port);