would help if we'd actually inst the client
parent
798b770d08
commit
308320e28e
|
@ -68,6 +68,7 @@ export default class Client extends Eris.Client {
|
||||||
const evtFiles = await fs.readdir('./events/');
|
const evtFiles = await fs.readdir('./events/');
|
||||||
const commands = await fs.readdir(path.join(__dirname, './commands/'));
|
const commands = await fs.readdir(path.join(__dirname, './commands/'));
|
||||||
commands.forEach((command) => {
|
commands.forEach((command) => {
|
||||||
|
if (command === 'index.js') return;
|
||||||
this.loadCommand(`./commands/${command}`);
|
this.loadCommand(`./commands/${command}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue