From 58cc8bca90014f852b3ac2fcd822b15d1e1d1ec4 Mon Sep 17 00:00:00 2001 From: M4ss1ck <34517932+M4ss1ck@users.noreply.github.com> Date: Fri, 6 Oct 2023 22:28:49 -0400 Subject: [PATCH] add bot.catch() --- src/main.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.ts b/src/main.ts index f2ab293..d87e914 100644 --- a/src/main.ts +++ b/src/main.ts @@ -92,6 +92,11 @@ if (commandList && !commandList.some((command) => command.command === latestComm bot.launch() logger.success('BOT INICIADO') +bot.catch((err) => { + logger.info('[bot.catch] ERROR') + logger.error(err) +}) + await runScheduled(bot) // Enable graceful stop