]> git.localhorst.tv Git - alttp.git/blob - app/TwitchBot/GuessingStartCommand.php
better yes classification
[alttp.git] / app / TwitchBot / GuessingStartCommand.php
1 <?php
2
3 namespace App\TwitchBot;
4
5 class GuessingStartCommand extends ChatCommand {
6
7         public function execute($args) {
8                 if ($this->channel->hasActiveGuessing()) {
9                         $msg = $this->channel->getGuessingSetting('active_message');
10                         $this->messageChannel($msg);
11                         return;
12                 }
13                 $type = $this->getStringConfig('type', 'gtbk');
14                 $this->channel->startGuessing($type);
15                 $msg = $this->channel->getGuessingSetting('start_message');
16                 $this->messageChannel($msg);
17         }
18
19 }
20
21 ?>