#help cmd

1 messages · Page 1 of 1 (latest)

somber rampart
#

hi, sorry for my bad english, i have this error

There was an error while executing this command!

Error: Cannot find module './8ball.js'
Require stack:
- /home/runner/Patriot/commands/utility/help.js
- /home/runner/Patriot/index.js

how do i fix it?

my code is ```js
let funnyFiles = []
const funnyfiles = fs.readdirSync('./commands/funny').filter(file => file.endsWith('.js'));

     for (const file of funnyfiles) {
     const command = require(`./${file}`);
     funnyFiles += `> ${command.data.name} - ${command.data.description}\n`
     }

directory screenshot: https://media.discordapp.net/attachments/1014456222969249842/1046830112970113084/Screenshot_20221126-172001_Chrome.jpg

my code: https://sourceb.in/pyJiVpCrsh