Chat Commands
chat_commandsParses and acts on chat !request, !vote, and !love commands using venue rules: queues or refuses DJ requests, counts votes, and enforces per-viewer reward rate limits.
Instructions
Handle chat's !request <text>, !vote <id> and !love by the venue's rules (venue_rules), the same way
every time: a request is queued for the DJ, refused (too many waiting, too soon, too long, closed) or, when one
like it is waiting, counted as a vote for that one; a vote moves a request up; a !love counts for what plays
(request_next shows them) with no reply. One !vote or !love per viewer per reward_s seconds (venue_rules), so
the reward channel cannot be spammed. Reach for it when chat_watch returns lines
with commands in them. lines: chat_watch's JSON as it came (or its lines). Returns JSON {replies: [{reply_to,
text}], handled, left}: say each reply with chat_say(text, reply_to=...). A line is acted on once, however often
it is handed in. left: commands it does not decide (!vote a in a vote of yours), and every other line is
yours as before.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |