NotSoToothless 34e9af2f94 make TSSBOT/start_bot.py a real Discord bot and reuse SREBOT venv (#1227)
- TSSBOT/start_bot.py: replace the print-and-idle stub with a minimal
  discord.py Client (commands.Bot with default+message_content intents).
  Loads TSSBOT/.env via python-dotenv, reads DISCORD_KEY, logs on_ready,
  handles SIGTERM/SIGINT cleanly. Aborts with a clear error if the token
  is missing instead of silently exit-looping.

- TSSBOT/ecosystem.config.js: switch the default interpreter from system
  python3 to SREBOT's venv (../SREBOT/.venv/bin/python). Both bots share
  BOTS/SHARED and the same baseline deps (discord.py, dotenv, …); split
  into a dedicated TSSBOT/.venv only when the dependency sets diverge.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-13 23:55:44 -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%