Browse Source

add a bunch of reaction aliases

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/197/head
Michael Telatynski 7 years ago
parent
commit
a440850ff1
No known key found for this signature in database GPG Key ID: 3F879DA5AD802A5E
  1. 31
      src/github.com/matrix-org/go-neb/services/github/github.go

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

@ -200,12 +200,31 @@ func (s *Service) cmdGithubCreate(roomID, userID string, args []string) (interfa
}
var cmdGithubReactAliases = map[string]string{
"+1": "+1",
"-1": "-1",
"laugh": "laugh",
"confused": "confused",
"heart": "heart",
"hooray": "hooray",
"+1": "+1",
":+1:": "+1",
"👍": "+1",
"-1": "-1",
":-1:": "-1",
"👎": "-1",
"laugh": "laugh",
"smile": "laugh",
":smile:": "laugh",
"😄": "laugh",
"confused": "confused",
":confused:": "confused",
"😕": "confused",
"heart": "heart",
":heart:": "heart",
"❤": "heart",
"hooray": "hooray",
"tada": "hooray",
":tada:": "hooray",
"🎉": "hooray",
}
const cmdGithubReactUsage = `!github react [owner/repo]#issue (+1|-1|laugh|confused|heart|hooray)`

Loading…
Cancel
Save