From 1684d0950593bb833e847ed29855ef5d3538e79e Mon Sep 17 00:00:00 2001 From: AnxietyisReal <96593068+AnxietyisReal@users.noreply.github.com> Date: Thu, 5 Jan 2023 19:50:49 +1100 Subject: [PATCH] New handler seems to work perfectly, purging old handler. --- src/index.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/index.ts b/src/index.ts index f26b7d4..a280bfd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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