Commit Graph

8 Commits

Author SHA1 Message Date
NotSoToothless 32e747212f Auto merge dev → main (#1332)
* feat(tssbot): build_match_logs + match_logs persistence

* feat(tssbot): create match_logs table and write logs at ingest

* feat(tssbot): one-time match_logs backfill script

* feat(srebot): persist chat/battle logs to match_logs (parity, no backfill)

* feat(tssbot): Battle/Chat Log buttons on Discord scoreboards
2026-06-18 01:02:59 -07:00
deploy d07afdee21 rename long_name → name in TSS teams schema
teams_data and team_name_history used long_name (an SRE concept for
teams with both a long and short name). TSS teams have one name only.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-08 01:07:37 +00:00
NotSoToothless abab7ea9fa tss db wipe and update (#1305) 2026-06-07 17:28:16 -07:00
NotSoToothless 7edc0202f4 lets get this party starteddddd (#1287) 2026-05-30 08:45:32 -07:00
NotSoToothless 6fb303e26f change to hex and update DBs (#1284) 2026-05-29 07:05:20 -07:00
NotSoToothless f5270be494 auto-migrate teams_data.clanrating and team_members.points on tssbot boot (#1235)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-14 14:30:02 -07:00
NotSoToothless 8e2f56df79 add TSS API endpoints + web proxy (#1234)
Adds /api/tss/teams/* and /api/tss/leaderboard/teams to SREBOT/server.js,
reading tss_battles.db and tss_teams.db with queries adapted to the
team_id / team_name / teams_data schema. Mirrors the existing
/api/squadrons/* endpoints. SREBOT/web/server.js gains matching proxy
routes so the frontend can reach them via the website host.

TSSBOT/BOT/storage.py picks up the columns and table the endpoints need
to return meaningful data: teams_data.clanrating, team_members.points,
and a new teams_points history table. All idempotent under the existing
init_tss_dbs() call.

Co-authored-by: Heidi <clippii@protonmail.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-14 14:21:58 -07:00
NotSoToothless e56951fcb2 TSS storage (#1233) 2026-05-14 14:03:59 -07:00