This commit is contained in:
*x1
2024-06-02 22:18:49 +02:00
parent 1a30f2a700
commit 8936deae4c
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ const db = require('../../fonctions/database.js');
module.exports = {
aliases: ['give'],
description: 'Donne des coins au premier qui appuie sur un bouton.',
emote: '⏱️',
emote: '🪙',
utilisation: '<amount>',
permission: 0,
+5
View File
@@ -51,12 +51,14 @@ module.exports = {
//AntiCrash
process.on('unhandledRejection', (error) => {
if (error.code == "10064") return
if (error.code == "10008") return
console.log(' [antiCrash] :: Unhandled Rejection/Catch'.red);
console.log(error);
});
process.on("uncaughtException", (error, origin) => {
if (error.code == "10064") return
if (error.code == "10008") return
console.log(' [antiCrash] :: Uncaught Exception/Catch'.red);
console.log(error);
console.log('Information supplémentaire:', origin);
@@ -64,6 +66,7 @@ module.exports = {
process.on('uncaughtExceptionMonitor', (error, origin) => {
if (error.code == "10064") return
if (error.code == "10008") return
console.log(' [antiCrash] :: Uncaught Exception Monitor/Catch'.red);
console.log(error);
console.log('Information supplémentaire:', origin);
@@ -71,12 +74,14 @@ module.exports = {
process.on('beforeExit', (code) => {
if (error.code == "10064") return
if (error.code == "10008") return
console.log(' [antiCrash] :: Before Exit'.red);
console.log('Code de sortie:', code);
});
process.on('exit', (code) => {
if (error.code == "10064") return
if (error.code == "10008") return
console.log(' [antiCrash] :: Exit'.red);
console.log('Code de sortie:', code);
});