Chat stats: count bots too; hide them only when showing statistics

Hidden chatters are now counted like everyone else; statistics pages and
leaderboards filter them at display time (chatlog.isHidden / hiddenUsers), so
editing the list applies immediately without losing data.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Bashy 2026-11-22 17:31:17 +02:00
parent 2991c88d9e
commit c296e020b0
2 changed files with 8 additions and 5 deletions

View file

@ -76,6 +76,7 @@ Estimate: about half a day once chat is read server-side.
Status: **logging built 2026-11-22** (src/chatlog.js), with her choices: per-viewer counts (messages, per day,
emotes incl. 7TV, !commands, first/last seen) parsed as messages arrive; raw messages kept **30 days** only;
moderation removes stored text; hidden chatters (bots) not counted. Viewer actions are counted too
moderation removes stored text; hidden chatters (bots) are counted but must be left out of shown
statistics and leaderboards (filter at display time with chatlog.isHidden()). Viewer actions are counted too
(chat_action: rewards + points, Power-ups + bits, cheers, subs, gifts, follows, raids, watch streaks, tips). Still to do: a statistics page, and a
"forget this viewer" button for removal requests (`chatlog.forgetUser()` exists).