diff options
author | =Corey Hulen <corey@hulen.com> | 2016-01-09 09:22:14 -0600 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2016-01-09 09:22:14 -0600 |
commit | 3edcf960a0502fbeb3e4b46e87ecb958646eeb39 (patch) | |
tree | d8f39f96499de30052169ac2970b10a71be2602e /api/command_shrug.go | |
parent | b1a7c1acf139efbb5312b4aa939bd94155e6a9e6 (diff) | |
download | chat-3edcf960a0502fbeb3e4b46e87ecb958646eeb39.tar.gz chat-3edcf960a0502fbeb3e4b46e87ecb958646eeb39.tar.bz2 chat-3edcf960a0502fbeb3e4b46e87ecb958646eeb39.zip |
Fixing unit tests
Diffstat (limited to 'api/command_shrug.go')
-rw-r--r-- | api/command_shrug.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/api/command_shrug.go b/api/command_shrug.go index e34f80110..c49bd46ae 100644 --- a/api/command_shrug.go +++ b/api/command_shrug.go @@ -25,5 +25,10 @@ func (me *ShrugProvider) GetCommand() *model.Command { } func (me *ShrugProvider) DoCommand(c *Context, channelId string, message string) *model.CommandResponse { - return &model.CommandResponse{ResponseType: model.COMMAND_RESPONSE_TYPE_IN_CHANNEL, Text: `¯\_(ツ)_/¯`} + rmsg := `¯\\\_(ツ)\_/¯` + if len(message) > 0 { + rmsg = message + " " + rmsg + } + + return &model.CommandResponse{ResponseType: model.COMMAND_RESPONSE_TYPE_IN_CHANNEL, Text: rmsg} } |