mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-09 23:00:18 +00:00
Fixed wrong directory (part 2)
This commit is contained in:
parent
50a2e49b54
commit
a7871e0026
@ -23,7 +23,7 @@ module.exports = class extends Client {
|
||||
this.config = require('../config.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) {
|
||||
const command = require(`./commands/${file}`);
|
||||
command.uses = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user