1
0
mirror of https://github.com/Rudi9719/kbtui.git synced 2026-03-22 08:47:24 +00:00

Spaces in reactions when ID is supplied

This commit is contained in:
Gregory Rudolph
2019-10-07 13:37:39 -04:00
parent a4f8811254
commit c4478ccd92

View File

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