]> git.localhorst.tv Git - alttp.git/blob - app/TwitchBot/GuessingStopCommand.php
multibyte handling in emote tokenizer
[alttp.git] / app / TwitchBot / GuessingStopCommand.php
1 <?php
2
3 namespace App\TwitchBot;
4
5 class GuessingStopCommand extends ChatCommand {
6
7         public function execute($args) {
8                 if (!$this->channel->hasActiveGuessing()) {
9                         $msg = $this->channel->getGuessingSetting('not_active_message');
10                         $this->messageChannel($msg);
11                         return;
12                 }
13                 $this->channel->stopGuessing();
14                 $msg = $this->channel->getGuessingSetting('stop_message');
15                 $this->messageChannel($msg);
16         }
17
18 }
19
20 ?>