$description .= $this->comment."\n";
}
if (count($this->players)) {
- $description .= "\nPlayers:\n";
+ $description .= "Players: ";
+ $first = true;
foreach ($this->players as $player) {
+ if ($first) {
+ $first = false;
+ } else {
+ $description .= ', ';
+ }
$link = $player->getStreamLink();
if ($link) {
- $description .= '- ['.$player->getName().']('.$link.")\n";
+ $description .= '['.$player->getName().']('.$link.')';
} else {
- $description .= '- '.$player->getName()."\n";
+ $description .= $player->getName();
}
}
+ $description .= "\n";
}
$comms = [];
foreach ($this->confirmedCrew as $crew) {
}
}
if (count($comms)) {
- $description .= "\nComms:\n";
+ $description .= "Comms: ";
+ $first = true;
foreach ($comms as $crew) {
+ if ($first) {
+ $first = false;
+ } else {
+ $description .= ', ';
+ }
$link = $crew->getStreamLink();
if ($link) {
- $description .= '- ['.$crew->getName().']('.$link.")\n";
+ $description .= '['.$crew->getName().']('.$link.')';
} else {
- $description .= '- '.$crew->getName()."\n";
+ $description .= $crew->getName();
}
}
+ $description .= "\n";
}
if ($this->raceroom) {
- $description .= "\nRaceroom: [".Str::afterLast($this->raceroom, '/').']('.$this->raceroom.")\n";
+ $description .= "Raceroom: [".Str::afterLast($this->raceroom, '/').']('.$this->raceroom.")\n";
}
return $description;
}