Remove space from commands variable
This commit is contained in:
parent
9f62d82033
commit
5ecd11ffb7
1 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ module.exports = {
|
||||||
"`<prefix>help netmodules` to display help for netmodules"
|
"`<prefix>help netmodules` to display help for netmodules"
|
||||||
],
|
],
|
||||||
execute({ message, args, prefix, client }) {
|
execute({ message, args, prefix, client }) {
|
||||||
var commands = " "
|
var commands = ""
|
||||||
let commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js'));
|
let commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js'));
|
||||||
let x = 0
|
let x = 0
|
||||||
if (args[0] == "netmodules") {
|
if (args[0] == "netmodules") {
|
||||||
|
@ -55,7 +55,7 @@ module.exports = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let regex = /<prefix>/g
|
let regex = /<prefix>/g
|
||||||
if(commands === " "){
|
if(commands === ""){
|
||||||
noHelp = 1;
|
noHelp = 1;
|
||||||
}
|
}
|
||||||
commands = commands.replace(regex, prefix)
|
commands = commands.replace(regex, prefix)
|
||||||
|
|
Loading…
Add table
Reference in a new issue