Browse Source

Spaces in reactions when ID is supplied

pull/1/head
Gregory Rudolph 5 years ago
parent
commit
c4478ccd92
  1. 9
      cmdReact.go

9
cmdReact.go

@ -2,7 +2,10 @@ @@ -2,7 +2,10 @@
package main
import "strconv"
import (
"strconv"
"strings"
)
func init() {
command := Command{
@ -16,8 +19,8 @@ func init() { @@ -16,8 +19,8 @@ func init() {
}
func cmdReact(cmd []string) {
if len(cmd) == 3 {
reactToMessageId(cmd[1], cmd[2])
if len(cmd) > 3 {
reactToMessageId(cmd[1], strings.Join(cmd[2:], " "))
} else if len(cmd) == 2 {
reactToMessage(cmd[1])
}

Loading…
Cancel
Save