stats: Filter links from dictionary
This commit is contained in:
parent
51c4bdbef5
commit
902245e5bc
1 changed files with 6 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Reference in a new issue