Commit Graph

34 Commits

Author SHA1 Message Date
2fac92356d feat: footer, auto-pause on no viewers, and Redsys question submissions
- Footer: add site-footer with one-liner + Cloud Host branding linking to cloudhost.es (mobile only, hidden on desktop)
- Auto-pause: game pauses automatically after AUTOPAUSE_DELAY_MS (default 60s) with no viewers connected; auto-resumes when first viewer connects; shows "Esperando espectadores…" in the UI
- Redsys: new /pregunta page lets viewers pay 1€ via Redsys to submit a fill-in question; submitted questions are used as prompts in the next round instead of AI generation; new redsys.ts implements HMAC_SHA256_V1 signing (3DES key derivation + HMAC-SHA256); notification endpoint at /api/redsys/notificacion handles server-to-server confirmation
- db.ts: questions table with createPendingQuestion / markQuestionPaid / getNextPendingQuestion / markQuestionUsed
- .env.sample: added AUTOPAUSE_DELAY_MS, PUBLIC_URL, REDSYS_* vars

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-27 14:03:30 +01:00
2abea42c18 feat: convert to argument.es — Spanish, vote buttons, Docker
- Translate all ~430 prompts to Spanish with cultural adaptations
- Translate all UI strings (frontend, admin, history, broadcast)
- Translate AI system prompts; models now respond in Spanish
- Replace Twitch/Fossabot viewer voting with in-site vote buttons
- Add POST /api/vote endpoint (IP-based, supports vote switching)
- Vote buttons appear during voting phase with active state highlight
- Rename project to argument.es throughout (package.json, cookie, DB)
- Add docker-compose.yml with SQLite volume mount
- Add .env.sample documenting all required and optional vars

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-27 13:09:00 +01:00
Theo Browne
ccaa86b4a6 send on transitions 2026-02-22 21:50:01 -08:00
Theo Browne
79f9dab7fb new layout for model rankings 2026-02-22 18:44:49 -08:00
Theo Browne
f33277a095 update way faster 2026-02-22 18:32:51 -08:00
Theo Browne
af2f055939 dedupe 2026-02-22 18:28:36 -08:00
Theo Browne
41deee807a fossabot setup 2026-02-22 18:25:15 -08:00
Matteo Mekhail
8489927b67 normalize socket IP format 2026-02-23 13:12:42 +11:00
Matteo Mekhail
0295041cda add support for railway internal proxy 2026-02-23 13:10:25 +11:00
Matteo Mekhail
0dcb6f71ab Suggestion from coderabbit and macros, both valid 2026-02-23 13:04:06 +11:00
Matteo Mekhail
ba543c1f25 This should fix the vuln from that script 2026-02-23 12:57:13 +11:00
Theo Browne
6e98a183ac ip specific votes + ui fixes 2026-02-22 17:45:08 -08:00
Theo Browne
1a5c8354a0 Merge pull request #28 from matteomekhail/feature/x-real-ip
Anti-spoofing system, fixes the counter viewer
2026-02-22 17:35:29 -08:00
Theo Browne
e7d1cb3bf7 Vote fixing 2026-02-22 17:33:52 -08:00
Matteo Mekhail
0b03c7c55c Anti-spoofing system, fixes the counter viewer 2026-02-23 12:29:57 +11:00
Theo Browne
845065ac8f voting why not lol 2026-02-22 17:22:59 -08:00
Theo Browne
f859c73662 Throttle more 2026-02-22 17:05:59 -08:00
Theo Browne
9763cdf0de Throttle view count updates 2026-02-22 16:35:20 -08:00
Theo Browne
797d05345a fix ips 2026-02-22 16:30:41 -08:00
Theo Browne
c01f3ff076 cleanup events + limits + more logs 2026-02-22 16:23:46 -08:00
Theo Browne
deeeeae8f7 auto refresh 2026-02-22 03:12:44 -08:00
Theo Browne
4fe8432a16 broadcast 2026-02-22 02:15:29 -08:00
Theo Browne
dc9ac4e7c8 admin and higher limits 2026-02-22 01:20:19 -08:00
Theo Browne
ea9d844f4b rename 2026-02-22 00:23:35 -08:00
Theo Browne
a25097cd4a hardened 2026-02-22 00:22:42 -08:00
Theo Browne
1ab21883fb View counter 2026-02-22 00:11:20 -08:00
Theo Browne
0f653c79bb title fix, more randomized 2026-02-20 05:26:20 -08:00
Theo Browne
77f68d440c logo, fix db loading 2026-02-20 04:49:40 -08:00
Theo Browne
593ad125ff Pause 2026-02-20 04:26:14 -08:00
Theo Browne
25d84a994e docker 2026-02-20 03:51:29 -08:00
Theo Browne
6bd3718cad better 2026-02-20 00:28:48 -08:00
Theo Browne
53f0543e99 infinite slop 2026-02-19 23:51:56 -08:00
Theo Browne
ce1ef83926 Better frontend kind of 2026-02-19 23:28:03 -08:00
Theo Browne
bca390ae75 web version 2026-02-19 22:46:41 -08:00