Answer the question
In order to leave comments, you need to log in
How to fix error: $ is not defined?
I am creating an application for node, in this case:
fs.readdir('./commands/', (err, files) =>{
if(err){console.log(err)};
let jsfile = files.filter(f => f.split('.').pop() === 'js');
if(jsfile.length <= '0'){console.log('could not find target')};
files.forEach((f, i) =>{
var props = require('./commands/${f}');
console.log('${f} loaded!')
bot.commands.set(props.help.name, props); /* часть discrord.js библиотеки,
не стоит обращать внимание. */
})
})
Error: $ is not defined
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question