diff options
| -rw-r--r-- | README.md | 3 | ||||
| -rw-r--r-- | flake.nix | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -55,7 +55,8 @@ Get your `.zuliprc` from Zulip: Settings → Bots → your bot → download conf - `.env.example` — operational defaults, including `KAGI_API_KEY` - Regex: `\$([A-Z]{1,5})` — matches 1-5 uppercase letters after `$` - Deduplicates tickers per message, replies in-place (same stream + topic) -- `flake.nix` — packages slopbot with `agent` from `/home/ben/src/bsima/agentd` as a Nix input +- `flake.nix` — packages slopbot with `agent` from `github:bsima/agentd` as a Nix input +- `SLOPBOT_DIR` — working directory the packaged `slopbot` runs from (default `/home/ben/src/bsima/slopbot`) ## Extending @@ -139,7 +139,7 @@ PY packages.${system} = rec { default = slopbot; slopbot = pkgs.writeShellScriptBin "slopbot" '' - cd /home/ben/src/bsima/slopbot + cd "''${SLOPBOT_DIR:-/home/ben/src/bsima/slopbot}" export PATH=${slopTools}/bin export SLOPBOT_AGENT=${agent}/bin/agent export SLOPBOT_AGENT_PATH=${slopTools}/bin |
