Normalize commands.
SMS tends to capitalize the first argument.
This commit is contained in:
@@ -32,7 +32,7 @@ func Parse(ctx context.Context, line string) (*Command, error) {
|
||||
cmd := &Command{
|
||||
Context: ctx,
|
||||
Raw: line,
|
||||
Command: args[0],
|
||||
Command: strings.ToLower(args[0]),
|
||||
Args: args[1:],
|
||||
Meta: map[string]string{},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user