aboutsummaryrefslogtreecommitdiff
path: root/twitch-bot
diff options
context:
space:
mode:
Diffstat (limited to 'twitch-bot')
-rw-r--r--twitch-bot/bot.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/twitch-bot/bot.js b/twitch-bot/bot.js
index cdc9780..63841c7 100644
--- a/twitch-bot/bot.js
+++ b/twitch-bot/bot.js
@@ -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;
}
}
});