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