]> git.localhorst.tv Git - alttp.git/blob - app/TwitchBot/GuessingStartCommand.php
simple guessing game
[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                         $this->messageChannel('Channel already has an active guessing game');
10                         return;
11                 }
12                 $type = $this->getStringConfig('type', 'gtbk');
13                 $this->channel->startGuessing($type);
14                 $this->messageChannel('Get your guesses in');
15         }
16
17 }
18
19 ?>