Fix logic

This commit is contained in:
Christopher Cookman 2025-09-15 06:00:45 -06:00
parent db82579172
commit bd861421e4

View file

@ -125,7 +125,7 @@ client.on("messageCreate", async (message) => {
global.dmHandlers[message.author.id](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 // Global error handling for unhandled promise rejections and uncaught exceptions
process.on('unhandledRejection', (reason, promise) => { process.on('unhandledRejection', (reason, promise) => {