Slackwolf\Game\Command\EndCommand::fire PHP Method

fire() public method

public fire ( )
    public function fire()
    {
        $client = $this->client;
        if (!$this->gameManager->hasGame($this->channel)) {
            $client->getChannelGroupOrDMByID($this->channel)->then(function (ChannelInterface $channel) use($client) {
                $client->send(":warning: No game in progress.", $channel);
            });
            return;
        }
        $this->gameManager->endGame($this->channel, $this->message->getUser());
    }