]> git.localhorst.tv Git - alttp.git/blobdiff - app/TwitchBot/GuessingCancelCommand.php
respond to whispers
[alttp.git] / app / TwitchBot / GuessingCancelCommand.php
index c510a324f3aa1d07dc2772b150960587532f82cc..bb6f361ed58d35fd5cda5ebd7a4575d370524e05 100644 (file)
@@ -5,10 +5,11 @@ namespace App\TwitchBot;
 class GuessingCancelCommand extends ChatCommand {
 
        public function execute($args) {
-               if ($this->chanel->hasActiveGuessing()) {
+               if ($this->channel->hasActiveGuessing()) {
                        $this->channel->clearGuessing();
-                       $this->messageChannel('Guessing game cancelled');
                }
+               $msg = $this->channel->getGuessingSetting('cancel_message');
+               $this->messageChannel($msg);
        }
 
 }