mirror of
https://github.com/arthur-pbty/gestion.git
synced 2026-06-11 03:14:23 +02:00
correction d'eventual probleme lié au helpall
This commit is contained in:
@@ -13,10 +13,8 @@ module.exports = (client) => {
|
||||
const event = require(filePath);
|
||||
if (typeof event.execute === 'function') {
|
||||
client.on(event.name, (...args) => event.execute(...args, client));
|
||||
console.log(`Event ${event.name} loaded`);
|
||||
count++;
|
||||
} else {
|
||||
console.error(`Event ${event.name} does not have an execute method.`);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user