Fix 'custom show'
This commit is contained in:
parent
a442c5cbe8
commit
a3f2804a8c
1 changed files with 2 additions and 3 deletions
|
@ -71,11 +71,10 @@ module.exports = {
|
|||
case "show":
|
||||
let json = fs.readFileSync(customPath, 'utf8');
|
||||
let customCommands = JSON.parse(json)
|
||||
customCommands.forEach(function (customCommand) {
|
||||
if (customCommand.customName === args[1]) {
|
||||
sendText = `\`\`\`\n${customCommand.customMessage}\n\`\`\``
|
||||
}else{
|
||||
sendText = "Command not found."
|
||||
customCommands.forEach(function (customCommand) {
|
||||
if (customCommand.customName === customName) {
|
||||
sendText = `\`\`\`\n${customCommand.customMessage}\n\`\`\``
|
||||
}
|
||||
});
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue