diff --git a/packages/spike/src/discord/index.ts b/packages/spike/src/discord/index.ts index a96bde4..0362b30 100644 --- a/packages/spike/src/discord/index.ts +++ b/packages/spike/src/discord/index.ts @@ -15,3 +15,11 @@ const client = new Client({ await client.login(process.env.DISCORD_TOKEN) listenForEvents(client) + +process.on("unhandledRejection", (error) => { + console.error("Unhandled promise rejection:", error) +}) + +process.on("uncaughtException", (error) => { + console.error("Uncaught exception:", error) +})