summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorBen Sima <ben@bensima.com>2026-05-18 14:07:02 -0400
committerBen Sima <ben@bensima.com>2026-05-18 14:07:02 -0400
commit2726dba7b41a2750a09889951ebbeecfdfe0981f (patch)
treef44e525e95a8a022e224cb34ff14d38dd858490c /README.md
parent06b08dbbcb4b234a94be189f855ce5fec4c5c37b (diff)
feat: implement slopbot Zulip stock ticker bot
- Adds main.py: single-file bot using raw zulip event loop - Matches $TICKER patterns via TICKER_RE = re.compile(r'$([A-Z]{1,5})') - fetch_price() uses yf.Ticker(ticker).fast_info['lastPrice'] - Returns '$TICKER: $123.45' on success - Returns '$TICKER: unavailable (msg)' on exception - handle_event() ignores non-message events, skips bot's own messages, deduplicates tickers, replies to same stream + topic - Module-level client + call_on_each_event per spec
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions