1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-12-26 11:45:37 -05:00

New handler seems to work perfectly, purging old handler.

This commit is contained in:
toast-ts 2023-01-05 19:50:49 +11:00
parent d477e612cc
commit 8e0f1603bd

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