summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/README.md b/README.md
index 0ffb3a1..273fb83 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,10 @@
# slopbot
-Zulip bot for [meshheads.org](https://zulip.meshheads.org) that replies with stock prices when it sees `$TICKER` patterns in messages.
+Zulip bot for [meshheads.org](https://zulip.meshheads.org) that replies with stock prices when it sees `$TICKER` patterns and calls `agent` for `@slop` mentions.
## Usage
-Post `$NVDA` or `$AAPL is mooning` in any stream and slopbot replies with the current price.
+Post `$NVDA` or `$AAPL is mooning` in any stream and slopbot replies with the current price. Mention `@slop` and it runs a one-shot `agent` subprocess with recent Zulip topic history.
## Setup
@@ -21,8 +21,10 @@ Get your `.zuliprc` from Zulip: Settings → Bots → your bot → download conf
- `main.py` — single-file bot, raw `zulip` event loop (no framework)
- `fetch_price(ticker)` — isolated data layer, easy to swap yfinance for a real API
+- `ask_agent(msg, content)` — runs the Rust `agent` binary once per mention
- 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
## Extending