Skip to content

Commit

Permalink
add bot.catch()
Browse files Browse the repository at this point in the history
  • Loading branch information
M4ss1ck committed Oct 7, 2023
1 parent 82d1294 commit 58cc8bc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 58cc8bc

Please sign in to comment.