trying to fix the break

This commit is contained in:
Bryson Steck 2022-03-11 17:47:59 -07:00
parent 92ab1b1c85
commit a2c69af0a3

View file

@ -114,7 +114,7 @@ function commands (target, commandName, user, mods) {
if (message.search(command.command) !== -1) {
client.say(target, `${command.reply}`);
valid = true;
break;
return true;
}
});
}
@ -141,10 +141,11 @@ function modCommands(target, commandName, isMod) {
if (message.search(command.command) !== -1) {
if (!isMod) {
client.say(target, `Only moderators can run this command...`);
return true;
} else {
client.say(target, `${command.reply}`);
valid = true;
break;
return true;
}
}
});