mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 02:33: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.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;
|
||||||
|
Loading…
Reference in New Issue
Block a user