Commit graph

4 commits

Author SHA1 Message Date
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
b5a81bdb15 Add TTS voice builder (/tts): Piper + espeak, layers, effects
- src/tts.js: synth(config, text) -> cached mp3 in public/tts; up to 3 layers
  (engine, voice, speaker, speed, pitch, volume, delay) mixed with ffmpeg,
  8 effects (stadium, echo, 8-bit, radio, robot, choir, warp, shaky), loudnorm;
  config is clamped and voice/speaker names are restricted to plain names
- tools/tts/worker.py: long-running Python worker (JSON lines), Piper models
  kept loaded (LRU of 4), espeak-ng via libespeak-ng + ctypes
- tools/tts/setup.sh: venv + piper-tts + default voice set
- /tts page: presets, layers, effects, test playback, save/load/delete named
  voices (tts_voices table); TTS link in the nav
- public/tts, tools/tts/venv and tools/tts/voices are gitignored

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 13:06:32 +02:00
cdcd3737a7 Wire it up: Twitch events, dashboard, overlay parts, layout editor removed
Twitch / server
- bits via channel.bits.use (cheers + Power-ups, replaces channel.cheer); built-in
  channel point rewards; polls; Hype Train v2; outgoing raids. New scopes:
  channel:read:polls, channel:read:hype_train, channel:manage:raids (log in again).
- Hype Train: alerts on start / each new level / end, plus the progress bar.
- Raid send-off: start/cancel raids from the dashboard (Helix /raids); the card
  stays until channel.raid reports the raid happened.
- StreamElements client started on boot; tip alerts.

Dashboard
- Twitch + StreamElements status, test buttons (poll, Hype Train bar, raid card),
  Raid box, activity Reload + auto-refresh, Redeems in the nav.
- Two-click delete instead of browser confirm() on Media and Actions.

Overlay
- ?parts= splits the overlay into OBS sources: chat, alerts, poll, hypebar, raid,
  or exclusions like ?parts=nochat. Recommended: ?parts=chat (audio Monitor Only,
  chat sounds stay off stream) + ?parts=nochat.
- Now playing switched off (commented, see CLAUDE.md to re-enable).

Removed the layout editor and preview page; chat position/style is baked into
overlay.ejs from the last saved layout (overlay_layout table kept, unused).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 23:18:15 +02:00
9e0ddb8182 Update gitignore 2026-11-20 18:55:47 +01:00