Remove space from commands variable

This commit is contained in:
SileNce5k 2021-06-27 03:03:04 +02:00
parent 9f62d82033
commit 5ecd11ffb7
No known key found for this signature in database
GPG key ID: C507260E7F2583AD

View file

@ -11,7 +11,7 @@ module.exports = {
"`<prefix>help netmodules` to display help for netmodules"
],
execute({ message, args, prefix, client }) {
var commands = " "
var commands = ""
let commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js'));
let x = 0
if (args[0] == "netmodules") {
@ -55,7 +55,7 @@ module.exports = {
}
}
let regex = /<prefix>/g
if(commands === " "){
if(commands === ""){
noHelp = 1;
}
commands = commands.replace(regex, prefix)