From 14efcc06bf39349cd1e12165ca3ecf0731235b0d Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Mon, 2 Jun 2025 22:54:25 +0000 Subject: [PATCH] fix: loops not running if there are config errors on startup --- backend/src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/index.ts b/backend/src/index.ts index 4c1c12d6..5a39027c 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -403,6 +403,8 @@ connect().then(async () => { logRateLimit(data); }); + bot.on("error", errorHandler); + bot.on("loadingFinished", async () => { setProfiler(bot.profiler); if (process.env.PROFILING === "true") {