Skip to content

Commit 14efcc0

Browse files
committed
fix: loops not running if there are config errors on startup
1 parent d99ddab commit 14efcc0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

backend/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,8 @@ connect().then(async () => {
403403
logRateLimit(data);
404404
});
405405

406+
bot.on("error", errorHandler);
407+
406408
bot.on("loadingFinished", async () => {
407409
setProfiler(bot.profiler);
408410
if (process.env.PROFILING === "true") {

0 commit comments

Comments
 (0)