8e2f56df793c8e47e543e39dd0092492dd71d9ed
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>
TSSBOT
Sibling bot under BOTS/. Skeleton only — actual logic to be implemented.
Shared game-data assets (vromfs, data parser, MAPS, ICONS, FONTS, DAGOR_FILES,
update_game_files.py) live in ../SHARED/. Add ../SHARED to sys.path
before importing data_parser:
import sys
from pathlib import Path
sys.path.insert(0, str(Path(__file__).resolve().parents[2] / "SHARED"))
from data_parser import UnitTags, LangTableReader # etc.
Layout
BOT/— Python source for the bot (placeholder)web/— front-end / API server for TSSBOT (placeholder)start_bot.py— entry point stub
Description
Languages
Python
99.3%
JavaScript
0.4%
Shell
0.3%