From dc52c48d99b242b13213911a2241c128ba5f9c05 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Wed, 16 Oct 2019 16:41:58 -0400 Subject: [PATCH] =?UTF-8?q?Why=20not=20=C2=AF\=5F(=E3=83=84)=5F/=C2=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmdShrug.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 cmdShrug.go diff --git a/cmdShrug.go b/cmdShrug.go new file mode 100644 index 0000000..d37eff1 --- /dev/null +++ b/cmdShrug.go @@ -0,0 +1,23 @@ +// +ignore +// +build allcommands shrugcmd + +package main + +import "strings" + +func init() { + command := Command{ + Cmd: []string{"shrug", "shrg"}, + Description: "$message - append a shrug ( ¯\\_(ツ)_/¯ )to your message", + Help: "", + Exec: cmdShrug, + } + + RegisterCommand(command) +} + +func cmdShrug(cmd []string) { + cmd = append(cmd, " ¯\\_(ツ)_/¯") + + sendChat(strings.Join(cmd[1:], " ")) +}