]> git.localhorst.tv Git - alttp.git/blobdiff - app/TwitchBot/TwitchAppBot.php
fix twitch bot chat command permissions
[alttp.git] / app / TwitchBot / TwitchAppBot.php
index 04d03e609cb6ecd007df3927d467e25de89b249f..13499f5d46b38d5913e3994e43ce09dc43250a15 100644 (file)
@@ -24,7 +24,7 @@ class TwitchAppBot extends TwitchBot {
                if ($text[0] == '!') {
                        $this->handleChatCommand($channel, $msg);
                } else if (
-                       $channel->hasActiveGuessing() &&
+                       $channel->isAcceptingGuesses() &&
                        !empty($msg->tags['user-id']) &&
                        !empty($msg->tags['display-name'] &&
                        $channel->isValidGuess($text))