diff options
Diffstat (limited to 'api')
-rw-r--r-- | api/command.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/api/command.go b/api/command.go index b4c9bb616..1e58308ad 100644 --- a/api/command.go +++ b/api/command.go @@ -106,6 +106,7 @@ func executeCommand(c *Context, w http.ResponseWriter, r *http.Request) { parts := strings.Split(command, " ") trigger := parts[0][1:] + trigger = strings.ToLower(trigger) message := strings.Join(parts[1:], " ") provider := GetCommandProvider(trigger) @@ -286,6 +287,7 @@ func createCommand(c *Context, w http.ResponseWriter, r *http.Request) { return } + cmd.Trigger = strings.ToLower(cmd.Trigger) cmd.CreatorId = c.Session.UserId cmd.TeamId = c.TeamId |