From 4c7bf32e86b4ba5c2f6b74b64e69f75d20ac0a11 Mon Sep 17 00:00:00 2001 From: *x1 Date: Fri, 31 May 2024 22:19:34 +0200 Subject: [PATCH] Update [Anti-Crash] --- events/ready.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/events/ready.js b/events/ready.js index 0e6098b..e793046 100644 --- a/events/ready.js +++ b/events/ready.js @@ -44,28 +44,33 @@ module.exports = { //AntiCrash process.on('unhandledRejection', (error) => { + if (error.code == "10064") return console.log(' [antiCrash] :: Unhandled Rejection/Catch'.red); console.log(error); }); process.on("uncaughtException", (error, origin) => { + if (error.code == "10064") return console.log(' [antiCrash] :: Uncaught Exception/Catch'.red); console.log(error); console.log('Information supplémentaire:', origin); }); process.on('uncaughtExceptionMonitor', (error, origin) => { + if (error.code == "10064") return console.log(' [antiCrash] :: Uncaught Exception Monitor/Catch'.red); console.log(error); console.log('Information supplémentaire:', origin); }); process.on('beforeExit', (code) => { + if (error.code == "10064") return console.log(' [antiCrash] :: Before Exit'.red); console.log('Code de sortie:', code); }); process.on('exit', (code) => { + if (error.code == "10064") return console.log(' [antiCrash] :: Exit'.red); console.log('Code de sortie:', code); });