Chat Watch
chat_watchBlocks until chat arrives from any watched venue, returns new messages and events as JSON, and remembers its place so agents can read stream chat continuously.
Instructions
The standing chat watcher: blocks until chat arrives on any venue, returns it, and remembers its place. Reach
for it when you read a stream's chat: what viewers write on every site, in one place. Run it
in the background (python -m ismail chat_watch "who=MC"), act on what it returns, and re-arm it FIRST after
every wake. Returns JSON {lines, since}: each line {n, kind (chat, event, status), venue, platform, user {id,
name, display, mod, sub, owner}, text, id}; events carry type (follow, sub, cheer, raid, superchat, member,
redeem) and amount; a line of our own account (its echo) carries own: true. A burst is gathered with a 3 s second look. Your own replies' echoes stay out
(include_self=true keeps them). venues: only these. wait_min: after this long with nothing it returns
{alive: true}: re-arm. Answer a line with chat_say(text, reply_to=).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| who | Yes | ||
| since | No | ||
| venues | No | ||
| wait_min | No | ||
| include_self | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |