From 3ea72f587dec33bc04968d84a6f88be70e90ba4a Mon Sep 17 00:00:00 2001 From: Fisto Date: Wed, 16 Sep 2026 10:28:58 +0200 Subject: [PATCH] Document the slopbot token in the daemon .env --- CURRENT.md | 6 +++--- docs/slopbot.md | 3 +++ poc/.env.example | 5 +++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CURRENT.md b/CURRENT.md index c214807..44cd158 100644 --- a/CURRENT.md +++ b/CURRENT.md @@ -306,9 +306,9 @@ mobile draft at 390px. ## Blocked / needs input -- Slopbot live test needs the bot invited to the test guild with View Channels + Read Message - History: . - The token lives at `/tmp/opencode/slopbot.json` (mode 600, outside the repo) for this session. +- Slopbot: the bot is invited to the test guild and the intent is enabled. The token lives in + `poc/.env` (gitignored, mode 600) and will be replaced when the project goes to prod. The daemon + must be restarted to pick it up. - The original repo `zib/Veskslop` has a broken server-side git setup. Fetches and clones fail with `bad pack header` because a script (`/home/git/.sys_health_s3`) runs on the Veskslop read path. The admin must fix it. Use `zib/Veskslop-t` (remote `veskslop-t`) until then. That remote has no diff --git a/docs/slopbot.md b/docs/slopbot.md index e05b073..c455291 100644 --- a/docs/slopbot.md +++ b/docs/slopbot.md @@ -45,6 +45,9 @@ channels. | `VESKSLOP_SLOPBOT_STATE` | unset | JSON file with `token` and `clientId` | | `VESKSLOP_SLOPBOT_CLIENT_ID` | unset | For the invite URL helper | +The daemon loads `poc/.env` at startup (dotenv, overriding shell exports), so the token normally +lives there. The file is gitignored; keep mode 600 and replace the token for production. + ## Code | File | Role | diff --git a/poc/.env.example b/poc/.env.example index f239994..2be9dda 100644 --- a/poc/.env.example +++ b/poc/.env.example @@ -3,3 +3,8 @@ VESKSLOP_TTS_NAME=MicroslopSam VESKSLOP_TTS_CMD="/path/to/microslopsam/setup/veskslop-tts.sh {out} {text_file}" # Generate with: /path/to/microslopsam/setup/veskslop-tts.sh --voices VESKSLOP_TTS_VOICES="" + +# Slopbot (media scraping bot). Create the app, enable the Message Content intent, +# and invite it with View Channels + Read Message History. See docs/slopbot.md. +VESKSLOP_SLOPBOT_ENABLED=1 +VESKSLOP_SLOPBOT_TOKEN=