diff --git a/stats/stats.go b/stats/stats.go index 963f317..00be7ed 100644 --- a/stats/stats.go +++ b/stats/stats.go @@ -338,6 +338,7 @@ func processWords(message tg.APIMessage) { val = 0 } count[message.User.Username] = val + 1 + words[word] = count j, err := json.Marshal(count) if err != nil {