Skip to content

Commit

Permalink
Merge pull request #2 from ShauryaB537/event_handler
Browse files Browse the repository at this point in the history
event_handler error
  • Loading branch information
Elitex07 authored Jan 29, 2023
2 parents 0596b1c + 7646ea1 commit 22303f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion handlers/bot/event.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const {readdirSync} = require('fs');
const e = 0;

module.exports = (client) => {
console.log(`=-=-=-=-=-=-=-=-= WELCOME TO ADVANCED EVENTS HANDLER =-=-=-=-=-=-=-=-=`.green)
readdirSync("./Events/").forEach(dir => {
Expand All @@ -15,6 +16,6 @@ module.exports = (client) => {
}
}
})
console.log(`[Event Handler] ${a} Events Loaded Successfully`.yellow);
console.log(`[Event Handler] ${client.events} Events Loaded Successfully`.yellow);
if(e>0) console.log(`[Event Handler] ${e} Event(s) are not Loaded`.red);
}

0 comments on commit 22303f1

Please sign in to comment.