From e246006a4a8525d269c9ac4cd59c9e928700cc82 Mon Sep 17 00:00:00 2001 From: S Leibrock Date: Sun, 7 May 2017 19:30:57 -0400 Subject: [PATCH] command.go: adding a /shrug command --- chat/command.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/chat/command.go b/chat/command.go index 49c8b7f..b95ce21 100644 --- a/chat/command.go +++ b/chat/command.go @@ -255,6 +255,16 @@ func InitCommands(c *Commands) { }, }) + c.Add(Command{ + Prefix: "/shrug", + Help: "Raise your arms in the air", + Handler: func(room *Room, msg message.CommandMsg) error { + body := strings.TrimLeft(msg.Body(), "/shrug") + room.Send(message.NewPublicMsg(body + "¯\\_(ツ)_/¯", msg.From())) + return nil + }, + }) + c.Add(Command{ Prefix: "/ignore", PrefixHelp: "[USER]",