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
parent
commit
da576fa12d
No known key found for this signature in database GPG Key ID: 3F879DA5AD802A5E
  1. 4
      src/github.com/matrix-org/go-neb/services/github/github.go

4
src/github.com/matrix-org/go-neb/services/github/github.go

@ -212,10 +212,12 @@ var cmdGithubReactAliases = map[string]string{
"smile": "laugh",
":smile:": "laugh",
"😄": "laugh",
"grin": "laugh",
"confused": "confused",
":confused:": "confused",
"😕": "confused",
"uncertain": "confused",
"heart": "heart",
":heart:": "heart",
@ -228,7 +230,7 @@ var cmdGithubReactAliases = map[string]string{
"🎉": "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) {
cli, resp, err := s.requireGithubClientFor(userID)

Loading…
Cancel
Save