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) => {