stats: Filter links from dictionary

This commit is contained in:
Hamcha 2016-02-14 00:14:51 +01:00
parent 51c4bdbef5
commit 902245e5bc
1 changed files with 6 additions and 0 deletions

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 {