Browse Source

No more auto-react

pull/2/head
Gregory Rudolph 5 years ago
parent
commit
9d7ca47595
  1. 27
      tcmdAutoReact.go

27
tcmdAutoReact.go

@ -1,27 +0,0 @@ @@ -1,27 +0,0 @@
// +ignore
// +build type_commands autoreactcmd
package main
import (
"samhofi.us/x/keybase"
)
func init() {
command := TypeCommand{
Cmd: []string{"text"},
Name: "AutoReact",
Description: "Automatically reacts to every incoming message with an emoji",
Exec: tcmdAutoReact,
}
RegisterTypeCommand(command)
}
func tcmdAutoReact(m keybase.ChatAPI) {
msgID := m.Msg.ID
channel := m.Msg.Channel
chat := k.NewChat(channel)
chat.React(msgID, ":+1:")
}
Loading…
Cancel
Save