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

fire() public method

public fire ( )
    public function fire()
    {
        if (!$this->gameManager->hasGame($this->channel)) {
            $this->client->getChannelGroupOrDMByID($this->channel)->then(function (ChannelInterface $channel) {
                $this->client->send(":warning: No game in progress.", $channel);
            });
            return;
        }
        // build list of players
        $playersList = PlayerListFormatter::format($this->game->getLivingPlayers());
        $this->gameManager->sendMessageToChannel($this->game, ":ok: The Living: " . $playersList);
    }
AliveCommand