From bd861421e45554b3530c4dedf3a3f2d40942eab1 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Mon, 15 Sep 2025 06:00:45 -0600 Subject: [PATCH] Fix logic --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index cd9a87a..f724070 100644 --- a/index.js +++ b/index.js @@ -125,7 +125,7 @@ client.on("messageCreate", async (message) => { global.dmHandlers[message.author.id](message); }); -if (process.env.NODE_ENV !== 'production') { +if (process.env.NODE_ENV == 'production') { // Global error handling for unhandled promise rejections and uncaught exceptions process.on('unhandledRejection', (reason, promise) => {