Fixed wrong directory (part 2)

This commit is contained in:
Christer Warén 2020-04-02 10:12:37 +03:00
parent 50a2e49b54
commit a7871e0026

View File

@ -23,7 +23,7 @@ module.exports = class extends Client {
this.config = require('../config.js'); this.config = require('../config.js');
this.messages = require('./messages.js'); this.messages = require('./messages.js');
const commandFiles = fs.readdirSync(path.join('commands')).filter(f => f.endsWith('.js')); const commandFiles = fs.readdirSync('./commands/').filter(f => f.endsWith('.js'));
for (const file of commandFiles) { for (const file of commandFiles) {
const command = require(`./commands/${file}`); const command = require(`./commands/${file}`);
command.uses = 0; command.uses = 0;