From a2c69af0a3326238bd84e3b3520fde4ce36dde00 Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Fri, 11 Mar 2022 17:47:59 -0700 Subject: trying to fix the break --- twitch-bot/bot.js | 5 +++-- 1 file 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; } } }); -- cgit v1.2.3