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) <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||||
@@ -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.
|
||||||
@@ -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)
|
||||||
Reference in New Issue
Block a user