]> git.localhorst.tv Git - alttp.git/blob - app/TwitchBot/GuessingCancelCommand.php
adlib chat
[alttp.git] / app / TwitchBot / GuessingCancelCommand.php
1 <?php
2
3 namespace App\TwitchBot;
4
5 class GuessingCancelCommand extends ChatCommand {
6
7         public function execute($args) {
8                 if ($this->channel->hasActiveGuessing()) {
9                         $this->channel->clearGuessing();
10                 }
11                 $msg = $this->channel->getGuessingSetting('cancel_message');
12                 $this->messageChannel($msg);
13         }
14
15 }
16
17 ?>