Per-viewer action statistics: rewards, Power-ups, cheers, subs, gifts, follows, raids, tips

chat_action counts every logged viewer event (via dispatch.js) per viewer and item,
with total spent (points / bits / months / subs / viewers / tip money). Keyed by
Twitch user id, or name:<login> for events without one. Hidden chatters skipped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Bashy 2026-11-22 17:24:21 +02:00
parent cd751e3a07
commit 862edf6d5d
3 changed files with 63 additions and 5 deletions

View file

@ -48,5 +48,6 @@ 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. Still to do: a statistics page, and a
moderation removes stored text; hidden chatters (bots) not counted. 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).