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
d477e612cc
commit
8e0f1603bd
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user