/**
  * {@inheritdoc}
  */
 public function fire()
 {
     $help_msg = "Options\r\n------------------------\r\n";
     $help_msg .= "To set an option use !setOption Name Value.  The valid names and values are provided below for each option. The current value is indicated in parenthesis.\r\n";
     $help_msg .= "Available Options\r\n------------------------\r\n";
     foreach ($this->gameManager->optionsManager->options as $curOption) {
         /* @var \Slackwolf\Game\Option $curOption */
         $help_msg .= OptionFormatter::format($curOption);
     }
     $this->client->getDMByUserId($this->user)->then(function (DirectMessageChannel $dm) use($help_msg) {
         $this->client->send($help_msg, $dm);
     });
 }
Example #2
0
 public function fire()
 {
     $client = $this->client;
     $help_msg = "Параметры\r\n------------------------\r\n";
     $help_msg .= "Формат нашего с тобой общения такой: !setOption Название Значение. Названия и допустимые значение представлены в списке ниже. Текущее значение указано в скобочках.\r\n";
     $help_msg .= "Какие у нас есть варианты\r\n------------------------\r\n";
     foreach ($this->gameManager->optionsManager->options as $curOption) {
         /** @var Slackwolf\Game\Option $curOption */
         $help_msg .= OptionFormatter::format($curOption);
     }
     $this->client->getDMByUserId($this->userId)->then(function (DirectMessageChannel $dm) use($client, $help_msg) {
         $client->send($help_msg, $dm);
     });
 }
 public function fire()
 {
     $client = $this->client;
     $help_msg = "Options\r\n------------------------\r\n";
     $help_msg .= "Pour activer une option, tapez !setOption <nom> <valeur>. Voici les noms et valeurs disponibles sont spécifiées plus bas (la valeur entre parenthèses est la valeur actuelle) :.\r\n";
     $help_msg .= "Options disponibles\r\n------------------------\r\n";
     foreach ($this->gameManager->optionsManager->options as $curOption) {
         /** @var Slackwolf\Game\Option $curOption */
         $help_msg .= OptionFormatter::format($curOption);
     }
     $this->client->getDMByUserId($this->userId)->then(function (DirectMessageChannel $dm) use($client, $help_msg) {
         $client->send($help_msg, $dm);
     });
 }