| @@ 29-40 (lines=12) @@ | ||
| 26 | * @param Payload $payload |
|
| 27 | * @param RealTimeClient $client |
|
| 28 | */ |
|
| 29 | public function __construct(Payload $payload, RealTimeClient $client) |
|
| 30 | { |
|
| 31 | $this->commandName = 'beer'; |
|
| 32 | $this->helpCommands = [ |
|
| 33 | 'help' => 'shows this help', |
|
| 34 | 'stats [username]' => 'show beer counter for [username]', |
|
| 35 | 'for [username]' => 'give [username] a T3Beer', |
|
| 36 | 'all' => 'show all beer counter', |
|
| 37 | 'top10' => 'show TOP 10', |
|
| 38 | ]; |
|
| 39 | parent::__construct($payload, $client); |
|
| 40 | } |
|
| 41 | ||
| 42 | /** |
|
| 43 | * stats for all beer counter. |
|
| @@ 32-42 (lines=11) @@ | ||
| 29 | * @param Payload $payload |
|
| 30 | * @param RealTimeClient $client |
|
| 31 | */ |
|
| 32 | public function __construct(Payload $payload, RealTimeClient $client) |
|
| 33 | { |
|
| 34 | $this->commandName = 'tell'; |
|
| 35 | $this->helpCommands = [ |
|
| 36 | 'help' => 'shows this help', |
|
| 37 | 'tell [@to-user] about review:[Gerrit-ID]' => 'tell the target user about the given review', |
|
| 38 | 'tell [@to-user] about forge:[Issue-ID]' => 'tell the target user about the given forge issue', |
|
| 39 | 'tell [@to-user] [your message]' => 'tell the target user your message', |
|
| 40 | ]; |
|
| 41 | parent::__construct($payload, $client); |
|
| 42 | } |
|
| 43 | ||
| 44 | /** |
|
| 45 | * @return bool|string |
|