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") {