]> git.localhorst.tv Git - alttp.git/blobdiff - app/TwitchBot/GuessingStopCommand.php
guessing game settings
[alttp.git] / app / TwitchBot / GuessingStopCommand.php
index cc4cd08c4593ff87769c93f85289761ba42d3bf0..898ece7ed343c1407dc60999f5d251dddd43cc30 100644 (file)
@@ -6,11 +6,13 @@ class GuessingStopCommand extends ChatCommand {
 
        public function execute($args) {
                if (!$this->channel->hasActiveGuessing()) {
-                       $this->messageChannel('Channel has no active guessing game');
+                       $msg = $this->channel->getGuessingSetting('not_active_message');
+                       $this->messageChannel($msg);
                        return;
                }
                $this->channel->stopGuessing();
-               $this->messageChannel('Guessing closed');
+               $msg = $this->channel->getGuessingSetting('stop_message');
+               $this->messageChannel($msg);
        }
 
 }