diff options
| author | Ben Sima <ben@bensima.com> | 2026-08-19 10:11:31 -0400 |
|---|---|---|
| committer | Ben Sima <ben@bensima.com> | 2026-08-19 10:11:31 -0400 |
| commit | b635d088ee3d391f445b46502272f66762161df1 (patch) | |
| tree | b999c6173f5ff1f967340aeb2af757f0d7d9b989 | |
| parent | c6f85a29072a5d91505058dc6aee11a63afc3a04 (diff) | |
| -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 |
