diff --git a/bot/handlers.go b/bot/handlers.go index 358c9e0..8a78faf 100644 --- a/bot/handlers.go +++ b/bot/handlers.go @@ -85,8 +85,6 @@ func (b *Bot) isCmd(message string) (bool, string) { iscmd := false lowerMessage := strings.ToLower(message) - rex := fmt.Sprintf(`^%s\S\s.+`, botnick) - if strings.HasPrefix(lowerMessage, cmdc) && len(cmdc) > 0 { iscmd = true message = message[len(cmdc):]