forked from an/flokati
fixed type error
This commit is contained in:
parent
d4344fbcde
commit
bc9c7e11f4
|
@ -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, " ")
|
||||||
|
|
Loading…
Reference in New Issue