From 9d7ca47595d3307c7e07d142c43c3b6236a06e5b Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Wed, 9 Oct 2019 11:06:48 -0400 Subject: [PATCH] No more auto-react --- tcmdAutoReact.go | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 tcmdAutoReact.go diff --git a/tcmdAutoReact.go b/tcmdAutoReact.go deleted file mode 100644 index 7919927..0000000 --- a/tcmdAutoReact.go +++ /dev/null @@ -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:") - -}