/shrug: Ignore additional arguments

This commit is contained in:
Boris Verhovsky 2018-09-06 13:04:26 -06:00 committed by Andrey Petrov
parent 9697c7d37f
commit 75492825e9

View File

@ -278,13 +278,7 @@ 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()))
room.Send(message.NewEmoteMsg(`¯\_(ツ)_/¯`, msg.From()))
return nil
},
})