feat(romhacks): add Discord rom-hack ingestion stack (DCE -> JDownloader -> RomM)
Inert by default: empty token keeps the orchestrator idle and DRY_RUN=true suppresses downloads. Orchestrator exports per-generation forum threads via DiscordChatExporter, extracts download links + art, stages metadata, and writes JDownloader crawljobs. Armed here with an alt account token and all 11 romhack forums, still in DRY_RUN pending first-cycle validation.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
# Harvest loop. Stays idle (no export, no enqueue) until the alt-account token and
|
||||
# guild id are configured, so deploying the stack unconfigured is harmless.
|
||||
set -u
|
||||
|
||||
POLL_INTERVAL="${POLL_INTERVAL:-21600}"
|
||||
|
||||
while true; do
|
||||
if [ -z "${DISCORD_TOKEN:-}" ] || [ -z "${GUILD_ID:-}" ]; then
|
||||
echo "[romhacks] DISCORD_TOKEN/GUILD_ID not set — idle. Sleeping ${POLL_INTERVAL}s."
|
||||
else
|
||||
python3 /app/orchestrate.py || echo "[romhacks] cycle failed (exit $?)"
|
||||
fi
|
||||
sleep "${POLL_INTERVAL}"
|
||||
done
|
||||
Reference in New Issue
Block a user