]> git.localhorst.tv Git - alttp.git/blob - app/TwitchBot/GuessingLeaderboardCommand.php
remove some useless svg groups
[alttp.git] / app / TwitchBot / GuessingLeaderboardCommand.php
1 <?php
2
3 namespace App\TwitchBot;
4
5 class GuessingLeaderboardCommand extends ChatCommand {
6
7         public function execute($args) {
8                 $leaderboard = $this->channel->getGuessingLeaderboard();
9                 $msg = '';
10                 foreach ($leaderboard as $entry) {
11                         if (!empty($msg)) {
12                                 $msg .= ', ';
13                         }
14                         $msg .= $entry->name.' ('.$entry->score.')';
15                 }
16                 $this->messageChannel($msg);
17         }
18
19 }
20
21 ?>