fixed type error
continuous-integration/drone/push Build is passing Details

This commit is contained in:
an 2020-04-20 09:10:31 +02:00
parent d4344fbcde
commit bc9c7e11f4
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ func init() {
} }
func markovHandleMessage(m *Message) { func markovHandleMessage(m *Message) {
if len(m.Text) == 0 || m.Text[0] == "!" { if strings.HasPrefix(m.Text, "!") {
return return
} }
tok := strings.Split(m.Text, " ") tok := strings.Split(m.Text, " ")