mirror of
https://github.com/System-End/Discord-Bot.git
synced 2026-04-19 16:28:26 +00:00
Fixed bug
This commit is contained in:
parent
f18d494af8
commit
32b2971865
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ module.exports = (client) => {
|
|||
const event = require(`../../events/${dirs}/${file}`);
|
||||
const eventName = file.split(".")[0];
|
||||
const eventUpperCase = eventName.charAt(0).toUpperCase() + eventName.slice(1);
|
||||
client.on(Discord.Events[eventUpperCase], event.bind(null, client));
|
||||
client.on(Discord.Events[eventUpperCase], event.bind(null, client)).setMaxListeners(0);
|
||||
};
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue