NotSoToothless 72833465dc drop require('dotenv') from ecosystem.config.js files (#1230)
TSSBOT has no node_modules/ on the server (no package.json was ever
installed for it), so `require('dotenv').config()` crashes pm2 with
MODULE_NOT_FOUND when it loads the ecosystem file. The dotenv call was
already dead code: every spawned app loads its own .env in its own
process (botscript.py, server.js, web/server.js, webhook updater,
TSSBOT/start_bot.py all do load_dotenv / require('dotenv').config()
themselves). Remove the require from both ecosystem files.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-14 00:09:51 -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%