1
0
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:
AnxietyisReal 2023-01-05 19:50:49 +11:00
parent 6b6a6936ff
commit 6cebc8b52e

View File

@ -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