From d73aae0f151e07d32af9066eb9d9a23a3bd46a87 Mon Sep 17 00:00:00 2001 From: Andrey Petrov Date: Fri, 19 Jan 2018 13:41:24 -0500 Subject: [PATCH] =?UTF-8?q?/shrug=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 --- chat/command.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/chat/command.go b/chat/command.go index 5d00a87..0570215 100644 --- a/chat/command.go +++ b/chat/command.go @@ -275,6 +275,20 @@ func InitCommands(c *Commands) { }, }) + c.Add(Command{ + Prefix: "/shrug", + Handler: func(room *Room, msg message.CommandMsg) error { + var me string + args := msg.Args() + if len(args) == 0 { + me = `¯\_(ツ)_/¯` + } + + room.Send(message.NewEmoteMsg(me, msg.From())) + return nil + }, + }) + c.Add(Command{ Prefix: "/timestamp", Help: "Timestamps after 30min of inactivity.",