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
2026-05-14 14:03:59 -07:00
2026-05-14 14:03:59 -07:00

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
S
Description
TSS Discord Bot - TSS game data and tournaments
Readme 1.5 MiB
Languages
Python 99.3%
JavaScript 0.4%
Shell 0.3%