1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 12:21:00 -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 f0ad1f4d6e
commit 1684d09505

View File

@ -37,12 +37,6 @@ client.on('ready', async()=>{
const eventFile = require(`./events/${file}`); const eventFile = require(`./events/${file}`);
client.on(file.replace('.ts', ''), async(...args)=>eventFile.default.run(client,...args)); 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 // Handle errors