stats: Filter links from dictionary

This commit is contained in:
Hamcha 2016-02-14 00:14:51 +01:00
parent 51c4bdbef5
commit 902245e5bc

View file

@ -322,6 +322,12 @@ func processWords(message tg.APIMessage) {
continue
}
word = strings.ToLower(word)
if strings.HasPrefix(word, "http") {
continue
}
word = strings.Trim(word, " ?!.,:;/-_()[]{}'\"+=*^\n")
count, ok := words[word]
if !ok {