]> git.localhorst.tv Git - alttp.git/blob - app/TwitchBot/GuessingStopCommand.php
simple guessing game
[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                         $this->messageChannel('Channel has no active guessing game');
10                         return;
11                 }
12                 $this->channel->stopGuessing();
13                 $this->messageChannel('Guessing closed');
14         }
15
16 }
17
18 ?>