X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FTwitchBot%2FGuessingCancelCommand.php;h=bb6f361ed58d35fd5cda5ebd7a4575d370524e05;hb=HEAD;hp=c510a324f3aa1d07dc2772b150960587532f82cc;hpb=7fc357a5943bf280ce2fa9aa97ec516af61efd69;p=alttp.git diff --git a/app/TwitchBot/GuessingCancelCommand.php b/app/TwitchBot/GuessingCancelCommand.php index c510a32..bb6f361 100644 --- a/app/TwitchBot/GuessingCancelCommand.php +++ b/app/TwitchBot/GuessingCancelCommand.php @@ -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); } }