mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 04:10:59 -05:00
New handler seems to work perfectly, purging old handler.
This commit is contained in:
parent
6b6a6936ff
commit
6cebc8b52e
@ -37,12 +37,6 @@ client.on('ready', async()=>{
|
||||
const eventFile = require(`./events/${file}`);
|
||||
client.on(file.replace('.ts', ''), async(...args)=>eventFile.default.run(client,...args));
|
||||
});
|
||||
|
||||
/*const eventFiles = fs.readdirSync('src/events').filter(file=>file.endsWith('.ts'));
|
||||
eventFiles.forEach((file)=>{
|
||||
const event = require(`./events/${file}`);
|
||||
client.on(event.default.name, async(...args)=>event.default.execute(client, ...args));
|
||||
});*/
|
||||
})
|
||||
|
||||
// Handle errors
|
||||
|
Loading…
Reference in New Issue
Block a user