diff options
Diffstat (limited to 'api/command_me.go')
-rw-r--r-- | api/command_me.go | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/api/command_me.go b/api/command_me.go index f0154fe53..c6147278b 100644 --- a/api/command_me.go +++ b/api/command_me.go @@ -10,17 +10,25 @@ import ( type MeProvider struct { } +const ( + CMD_ME = "me" +) + func init() { RegisterCommandProvider(&MeProvider{}) } -func (me *MeProvider) GetCommand() *model.Command { +func (me *MeProvider) GetTrigger() string { + return CMD_ME +} + +func (me *MeProvider) GetCommand(c *Context) *model.Command { return &model.Command{ - Trigger: "me", + Trigger: CMD_ME, AutoComplete: true, - AutoCompleteDesc: "Do an action", - AutoCompleteHint: "[message]", - DisplayName: "me", + AutoCompleteDesc: c.T("api.command_me.desc"), + AutoCompleteHint: c.T("api.command_me.hint"), + DisplayName: c.T("api.command_me.name"), } } |