From 4d9954934da450bd3687effbe8f1c554fac24178 Mon Sep 17 00:00:00 2001 From: FURRO404 Date: Wed, 13 May 2026 23:17:02 -0700 Subject: [PATCH] add SREBOT, SHARED, TSSBOT contents (fixup for #1223) PR #1223 only staged the deletions of the old paths because the new top-level directories were still untracked when the commit was authored. This commit adds the actual restructured tree: SREBOT/ (existing bot), SHARED/ (vromfs, data_parser, ICONS/MAPS/FONTS, DAGOR_FILES, update_game_files), and TSSBOT/ (skeleton). Co-Authored-By: Claude Opus 4.7 (1M context) --- BOT/__init__.py | 0 README.md | 19 +++++++++++++++++++ requirements.txt | 3 +++ start_bot.py | 14 ++++++++++++++ web/.gitkeep | 0 5 files changed, 36 insertions(+) create mode 100644 BOT/__init__.py create mode 100644 README.md create mode 100644 requirements.txt create mode 100644 start_bot.py create mode 100644 web/.gitkeep diff --git a/BOT/__init__.py b/BOT/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/README.md b/README.md new file mode 100644 index 0000000..2fe42f6 --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +# 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`: + +```python +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 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..8ac6ec2 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +# TSSBOT runtime deps — populate as the bot is built out. +# Many shared utilities under BOTS/SHARED/ require the same deps SREBOT uses; +# see ../SREBOT/requirements.txt for reference. diff --git a/start_bot.py b/start_bot.py new file mode 100644 index 0000000..3608075 --- /dev/null +++ b/start_bot.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python3 +"""Entry point for TSSBOT. Skeleton only.""" +import sys +from pathlib import Path + +# Ensure TSSBOT root and BOTS/SHARED are importable +_HERE = Path(__file__).resolve().parent +_SHARED = _HERE.parent / "SHARED" +sys.path.insert(0, str(_HERE)) +sys.path.insert(0, str(_SHARED)) + +if __name__ == "__main__": + print("TSSBOT skeleton — implement BOT/botscript.py and wire it in here.") + sys.exit(0) diff --git a/web/.gitkeep b/web/.gitkeep new file mode 100644 index 0000000..e69de29