Skip to content

Commit

Permalink
Fix recursive exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Konard authored Mar 6, 2024
1 parent 62e49b2 commit f68bce8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const startBot = async (deep, botToken) => {
const eventString = JSON.stringify(event, null, 2);
console.error('Unhandled rejection:', eventString);
await discordClient.destroy();
throw new Error(`Unhandled rejection error: ${eventString}`);
// throw new Error(`Unhandled rejection error: ${eventString}`);
});

discordClient.on('exit', (event) => {
Expand Down Expand Up @@ -204,4 +204,4 @@ app.post('/init', async (req, res) => {


http.createServer({ maxHeaderSize: 10*1024*1024*1024 }, app).listen(process.env.PORT);
console.log(`Listening ${process.env.PORT} port`);
console.log(`Listening ${process.env.PORT} port`);

0 comments on commit f68bce8

Please sign in to comment.