diff --git a/bot/command.go b/bot/command.go index 8c9bfd6..f45301f 100644 --- a/bot/command.go +++ b/bot/command.go @@ -196,7 +196,7 @@ func (b *Bot) parseCommand(message string, toLower bool) []string { if toLower { message = strings.ToLower(message) } - return strings.Split(message, " ") + return strings.Split(strings.TrimSpace(message), " ") } func (b *Bot) sendIntroduction(ctx context.Context, roomID id.RoomID) {