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