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":
|
case "show":
|
||||||
let json = fs.readFileSync(customPath, 'utf8');
|
let json = fs.readFileSync(customPath, 'utf8');
|
||||||
let customCommands = JSON.parse(json)
|
let customCommands = JSON.parse(json)
|
||||||
|
sendText = "Command not found."
|
||||||
customCommands.forEach(function (customCommand) {
|
customCommands.forEach(function (customCommand) {
|
||||||
if (customCommand.customName === args[1]) {
|
if (customCommand.customName === customName) {
|
||||||
sendText = `\`\`\`\n${customCommand.customMessage}\n\`\`\``
|
sendText = `\`\`\`\n${customCommand.customMessage}\n\`\`\``
|
||||||
}else{
|
|
||||||
sendText = "Command not found."
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue