Skip to content

Commit

Permalink
Restart bot if initialization fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Rian8337 committed Oct 13, 2024
1 parent d9a85d7 commit c7c4c58
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ config();

const bot = new Bot();

bot.start();
bot.start().catch((e) => {
console.error(e);
process.exit(1);
});

0 comments on commit c7c4c58

Please sign in to comment.