From 29a947d9428af38dd3191783a4fea449210ca0e9 Mon Sep 17 00:00:00 2001 From: VALOU3336 Date: Sat, 24 Feb 2024 23:19:07 +0100 Subject: [PATCH] petit truc gitignore --- .gitignore | 4 +++- events/client/ready.js | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index f8b8bfb..47fe0b3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ .env /node_modules .vscode -json.sqlite \ No newline at end of file +json.sqlite +mybot.js +changelog.js \ No newline at end of file diff --git a/events/client/ready.js b/events/client/ready.js index 86f61fb..bb52650 100644 --- a/events/client/ready.js +++ b/events/client/ready.js @@ -4,6 +4,12 @@ module.exports = { name: Events.ClientReady, async execute(client) { console.log(`le bot ${client.user.tag} est en ligne`) + process.on('uncaughtException', (error) => { + console.error('Uncaught Exception:', error); + }); + process.on('unhandledRejection', (reason, promise) => { + console.error('Unhandled Rejection at:', promise, 'reason:', reason); + }); } }; \ No newline at end of file