Commit graph

4 commits

Author SHA1 Message Date
a3e862e9c2 Levels by watch time: Viewer, Regular (10 h), Veteran (50 h)
Replaces the cassette-themed point levels. Watch time = our ticks + StreamElements
import; points only rank the leaderboard, bits/subs do not buy a level.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:56:22 +02:00
024934f09f Stats: tidy leaderboards (even rows, aligned values and level pills, wider Points board)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:53:18 +02:00
dd0e92c0bb Stats: one-time import of StreamElements watch time
seimport.js reads the SE channel from SE_JWT, fetches /kappa/v2/points/<ch>/watchtime
(all pages) into watch_import (login, minutes), replacing any previous import.
Imported minutes count as watch time and watch points (5 per 5 min, merged by
login) on the Stats page, leaderboards and viewer pages. Button on Stats warns that
importing again after our own tracking started double-counts those streams.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:50:04 +02:00
c364e7079b Stats page: overview, activity per day, leaderboards, top emotes/commands, viewer lookup
/stats (dashboard nav): totals, chat messages and watch hours per day (30 days,
single-series bar charts with hover), leaderboards for points (with level), watch
time, chat, bits, channel points spent; top emotes (with images) and commands.
/stats/viewer?q=: one viewer's points breakdown, watch time, messages, check-ins,
emotes, commands, actions, and 'Forget this viewer' (removal requests: stats, watch
time, raw chat, activity log). Bots (Hidden chatters) left out of everything shown.
src/points.js: the agreed point values in one place, calculated from the stats.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 17:40:05 +02:00