Auto merge dev → main (#1324)

* update game files

* update files and capture raw spectra payload
This commit is contained in:
NotSoToothless
2026-06-14 21:11:57 -07:00
committed by GitHub
parent 931b6f0be0
commit 4b75ce1533
3 changed files with 48 additions and 1 deletions
+13
View File
@@ -92,6 +92,19 @@ def replay_session_dir(session_id: str | int) -> Path:
def replay_data_path(session_id: str | int) -> Path:
return replay_session_dir(session_id) / "replay_data.json.gz"
# When enabled, the unmodified Spectra payload is stored next to the transformed
# replay (as RAW_replay_data.json.gz) so it can be pulled and re-processed later.
# Toggle off by setting SRE_STORE_RAW_REPLAY=0 in the environment.
STORE_RAW_REPLAY = os.getenv("SRE_STORE_RAW_REPLAY", "1").strip().lower() not in (
"0", "false", "no", "off", "",
)
def raw_replay_data_path(session_id: str | int) -> Path:
"""Path to the unmodified Spectra payload for a session (pre-transform)."""
return replay_session_dir(session_id) / "RAW_replay_data.json.gz"
# Dev team Discord user IDs (bot owner + trusted devs)
DEV_DISCORD_IDS: set[int] = {
1357793112277127290,