Fix logic
This commit is contained in:
parent
db82579172
commit
bd861421e4
2
index.js
2
index.js
|
@ -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) => {
|
||||||
|
|
Loading…
Reference in a new issue