diff options
author | Bryson Steck <steck.bryson@gmail.com> | 2022-03-11 17:47:59 -0700 |
---|---|---|
committer | Bryson Steck <steck.bryson@gmail.com> | 2022-03-11 17:47:59 -0700 |
commit | a2c69af0a3326238bd84e3b3520fde4ce36dde00 (patch) | |
tree | ee13a4f1dfc52f9fb6f788cb041c9c418ee38cb2 /twitch-bot | |
parent | 92ab1b1c850f5e386737e7af048d6a1ed4a05a25 (diff) | |
download | lset-a2c69af0a3326238bd84e3b3520fde4ce36dde00.tar lset-a2c69af0a3326238bd84e3b3520fde4ce36dde00.tar.gz lset-a2c69af0a3326238bd84e3b3520fde4ce36dde00.tar.bz2 |
trying to fix the break
Diffstat (limited to 'twitch-bot')
-rw-r--r-- | twitch-bot/bot.js | 5 |
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; } } }); |