Files
homelabstack/stacks/romhacks/stack.env
T
ginnoir 1360a8fa65 feat(romhacks): automated hand-off — route downloads to RomM + library, render notes
handoff.py classifies completed downloads (console rom vs RPG-Maker fangame vs
patch, via bsdtar archive peek incl. RAR5), copies console roms into
Emulation/roms/<platform> for RomM, moves the full folder (rom + guides) into
the library archive, and renders note.md + handoff.json per hack for the
Obsidian publish step. Wired into the cycle; single /data mount keeps moves as
fast renames. Validated on 4 real games.
2026-06-07 20:25:30 -05:00

32 lines
1.9 KiB
Bash

# romhacks stack — INERT until armed.
#
# Use an ALT Discord account's token. Self-token use violates Discord ToS; read-only
# export is the low-risk end of that gray zone, but an alt account that has joined
# the server purely for this isolates any ban risk from your main account.
TZ=America/Chicago
# ── Discord (ALT account) ────────────────────────────────────────────────────
# User token from the ALT account. Read-only export only. Rotating the alt's
# password / full logout invalidates this — re-grab via DevTools Network tab.
DISCORD_TOKEN=MTUxMzMyNDc1MTYxMzg1Mzc5Ng.GjT6qU.A-VRmDoca1iT2ys54IGQJhTbudqteb69Klhjbk
# Guild (server) ID.
GUILD_ID=1474050123347525652
# ── Behavior ─────────────────────────────────────────────────────────────────
# DRY_RUN=true => export, parse, and stage metadata, but DO NOT enqueue any
# downloads. Inspect /storage1/labdata/romhacks/metadata first.
# DRY_RUN=false => write .crawljob files so JDownloader starts fetching.
DRY_RUN=false
# HANDOFF_DRY=false => route completed downloads into the library + RomM and
# render per-hack notes. true => classify/preview only, move nothing.
HANDOFF_DRY=false
# Seconds between harvest cycles (21600 = 6h).
POLL_INTERVAL=21600
# JDownloader in-container download root (maps to /storage1/labdata/romhacks/incoming).
JD_DOWNLOAD_ROOT=/output
# ── JDownloader noVNC UI (jlesage) ───────────────────────────────────────────
# Password for the web UI (reachable at http://valhalla:8998, or via Caddy
# internal-only once you add a site block). Set this before exposing it.
VNC_PASSWORD=