From 9457baf81a43774283b463066e2c53a2b9f46ffb Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Sat, 3 Oct 2026 12:19:56 +0700 Subject: [PATCH] fix(deploy): pass LOL_PANDASCORE_TOKEN to the bot explicitly The lol module reads the PandaScore token, but compose.yml never listed it, so the bot depended on Coolify passing unlisted variables through. It is optional: without it the lol commands fail and the rest of the bot runs. --- compose.yml | 2 ++ docs/deploy-coolify-selfhosted.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/compose.yml b/compose.yml index c27c71f..cccb88d 100644 --- a/compose.yml +++ b/compose.yml @@ -14,6 +14,8 @@ services: MODULES: ${MODULES} # CSV; empty = all modules OWNER_ID: ${OWNER_ID} # Telegram user id for owner-only commands ADMIN_IDS: ${ADMIN_IDS} # CSV of admin Telegram user ids + # --- Optional --- + LOL_PANDASCORE_TOKEN: ${LOL_PANDASCORE_TOKEN:-} # PandaScore token — SECRET; unset = /lol* fetches fail # The bundled renderer service below draws /wheelofnames, /gacha and # /genshin. Its base URL is fixed to the in-network address so a stale # platform-level value cannot point the bot elsewhere; the bot appends diff --git a/docs/deploy-coolify-selfhosted.md b/docs/deploy-coolify-selfhosted.md index 150a862..cdccbe8 100644 --- a/docs/deploy-coolify-selfhosted.md +++ b/docs/deploy-coolify-selfhosted.md @@ -35,7 +35,7 @@ Copy [`.env.example`](../.env.example) → `.env` (gitignored) and fill in. | `OWNER_ID` | optional | Telegram user id for owner-only commands, the deploy DM, and the `/addsticker` pack owner. Unset = owner-only commands are denied and `/addsticker` refuses | | `ADMIN_IDS` | optional | CSV of Telegram user ids for admin-only commands | | `STICKER_PACK_NAME` | optional | set `/addsticker` writes to; default `miti99_by_miti99bot`. See [sticker packs](sticker-packs.md) | -| `LOL_PANDASCORE_TOKEN` | ✅ for lol module | PandaScore API token (free tier) — secret, never logged; without it every `/lol*` fetch fails (stale cache may still serve briefly) | +| `LOL_PANDASCORE_TOKEN` | optional | PandaScore API token for the lol module (free tier) — secret, never logged; without it every `/lol*` fetch fails (stale cache may still serve briefly) | | `RENDERER_URL` | leave unset | base URL of the animation renderer; fixed by `compose.yml` to the bundled renderer (`http://renderer:3000`), so a Coolify value is ignored | | `LOG_LEVEL` | optional | `debug`, `info` (default), `warn`, or `error`; logs are JSON on stdout | | `GOLD_VNAPP_API_KEY` | leave unset | VNAppMob key; unset = the gold module fetches one and caches it in MongoDB |