Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Konard authored Mar 6, 2024
1 parent f68bce8 commit 4bc064c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,6 @@ const startBot = async (deep, botToken) => {
console.log(`Logged in as ${discordClient.user.tag}!`);
});

process.on('unhandledRejection', async (event) => {
const eventString = JSON.stringify(event, null, 2);
console.error('Unhandled rejection:', eventString);
await discordClient.destroy();
// throw new Error(`Unhandled rejection error: ${eventString}`);
});

discordClient.on('exit', (event) => {
const eventString = JSON.stringify(event, null, 2);
console.log(`Discord bot is exited:`, event);
Expand Down

0 comments on commit 4bc064c

Please sign in to comment.