Browse Source
add more aliases and throw them into the example in the usage
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/197/head
Michael Telatynski
7 years ago
No known key found for this signature in database
GPG Key ID: 3F879DA5AD802A5E
1 changed files with
3 additions and
1 deletions
-
src/github.com/matrix-org/go-neb/services/github/github.go
|
@ -212,10 +212,12 @@ var cmdGithubReactAliases = map[string]string{ |
|
|
"smile": "laugh", |
|
|
"smile": "laugh", |
|
|
":smile:": "laugh", |
|
|
":smile:": "laugh", |
|
|
"😄": "laugh", |
|
|
"😄": "laugh", |
|
|
|
|
|
"grin": "laugh", |
|
|
|
|
|
|
|
|
"confused": "confused", |
|
|
"confused": "confused", |
|
|
":confused:": "confused", |
|
|
":confused:": "confused", |
|
|
"😕": "confused", |
|
|
"😕": "confused", |
|
|
|
|
|
"uncertain": "confused", |
|
|
|
|
|
|
|
|
"heart": "heart", |
|
|
"heart": "heart", |
|
|
":heart:": "heart", |
|
|
":heart:": "heart", |
|
@ -228,7 +230,7 @@ var cmdGithubReactAliases = map[string]string{ |
|
|
"🎉": "hooray", |
|
|
"🎉": "hooray", |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const cmdGithubReactUsage = `!github react [owner/repo]#issue (+1|-1|laugh|confused|heart|hooray)` |
|
|
|
|
|
|
|
|
const cmdGithubReactUsage = `!github react [owner/repo]#issue (+1|👍|-1|:-1:|laugh|:smile:|confused|uncertain|heart|❤|hooray|:tada:)` |
|
|
|
|
|
|
|
|
func (s *Service) cmdGithubReact(roomID, userID string, args []string) (interface{}, error) { |
|
|
func (s *Service) cmdGithubReact(roomID, userID string, args []string) (interface{}, error) { |
|
|
cli, resp, err := s.requireGithubClientFor(userID) |
|
|
cli, resp, err := s.requireGithubClientFor(userID) |
|
|