private function execute(CommandMessage $command) : \Generator { if (!(yield $command->getRoom()->isApproved())) { return; } return $this->chatClient->postReply($command, sprintf('I have been running for %s, since %s', dateinterval_to_string((new \DateTime())->diff($this->startTime)), $this->startTime->format('Y-m-d H:i:s'))); }
private function getCountdown() : string { $timeLeft = $this->getTimeUntilNextFriday(); return sprintf('Only %s left until Rebeccaday, OMG!', dateinterval_to_string($timeLeft, 'i')); }