diff options
Diffstat (limited to 'api/command_shrug.go')
-rw-r--r-- | api/command_shrug.go | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/api/command_shrug.go b/api/command_shrug.go index c49bd46ae..8fb5bc200 100644 --- a/api/command_shrug.go +++ b/api/command_shrug.go @@ -10,17 +10,25 @@ import ( type ShrugProvider struct { } +const ( + CMD_SHRUG = "shrug" +) + func init() { RegisterCommandProvider(&ShrugProvider{}) } -func (me *ShrugProvider) GetCommand() *model.Command { +func (me *ShrugProvider) GetTrigger() string { + return CMD_SHRUG +} + +func (me *ShrugProvider) GetCommand(c *Context) *model.Command { return &model.Command{ - Trigger: "shrug", + Trigger: CMD_SHRUG, AutoComplete: true, - AutoCompleteDesc: `Adds ¯\_(ツ)_/¯ to your message`, - AutoCompleteHint: "[message]", - DisplayName: "shrug", + AutoCompleteDesc: c.T("api.command_shrug.desc"), + AutoCompleteHint: c.T("api.command_shrug.hint"), + DisplayName: c.T("api.command_shrug.name"), } } |