diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |
