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/Server.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Server.ts') diff --git a/src/Server.ts b/src/Server.ts index e672bd0c..85de728f 100644 --- a/src/Server.ts +++ b/src/Server.ts @@ -8,6 +8,7 @@ import { Config, getOrInitialiseDatabase } from "@fosscord/util"; import * as Sentry from "@sentry/node"; import * as Tracing from "@sentry/tracing"; import { PluginLoader } from "@fosscord/util"; +import { PluginConfig } from "util/plugin/PluginConfig"; const app = express(); const server = http.createServer(); @@ -34,6 +35,7 @@ process.on("SIGTERM", () => { async function main() { await getOrInitialiseDatabase(); await Config.init(); + await PluginConfig.init(); //Sentry if (Config.get().sentry.enabled) { @@ -61,7 +63,7 @@ async function main() { } console.log(`[Server] ${green(`listening on port ${bold(port)}`)}`); - PluginLoader.loadPlugins(); + await PluginLoader.loadPlugins(); } main().catch(console.error); -- cgit 1.5.1