---command_handler.js---
const fs = require('fs');
module.exports = (client, Discord) =>{
const command_files = fs.readdirSync('./Commands/').filter(file => file.endsWith('.js'))
for(const file of command_files){
const command = require(`./Commands/${file}`);
if(command.name){
client.commands.set(command.name, command);
} else {
continue;
}
}
}
---balance.js---
module.exports = {
name: 'balance',
aliases: ["bal", "bl"],
permissions: [],
description: "Check the user balance",
async execute(message, args, cmd, client, discord, profileData){
message.channel.send(`Your wwallet balance is ${profileData.coins}, your monke balance is ${profileData.monke}`);
}
}
My error message is
Error: Cannot find module './Commands/balance.js'
I don't no why this is happening. Please help