From 6ca88c8a766f5d0b2c43b515caad66c8accba050 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Mon, 16 Jun 2025 13:15:58 -0700 Subject: [PATCH] try again --- packages/spike/src/discord/index.ts | 8 ++++++++ 1 file changed, 8 insertions(+) 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) +})