README.md
38 lines · 1.6 KB · Markdown@kentcdodds/twitch
Intent
Twitch Helix API helpers for Kody agents to monitor live streams, send chat messages, read chatters, and update channel settings during broadcasts. Transport is a thin OpenAPI-scaffolded client; live-status shaping and chat message guards stay in package domain helpers.
What it does
- Check whether a Twitch channel is live and read stream metadata
- Send chat messages or list chatters during a broadcast
- Update channel title or game category while streaming
- Call uncommon Helix endpoints through the low-level
./requesthelper - Verify saved Twitch credentials before mutating chat or channel settings
Prerequisites / setup
- Connect the
twitchOAuth integration (Authorization viacreateAuthenticatedFetch). ItsclientIdis sent asClient-Id— Helix requires both Authorization and Client-Id, and both come from the integration, so there is nothing extra to set up. - Reconnect via
/connect/oauth?provider=twitchwhen the token expires or lacks required scopes. - Approve host
api.twitch.tvin the account security UI if prompted. - Agents: see
AGENTS.mdfor import paths and smoke checks.
OpenAPI surface is scaffolded from the community Helix document
(get_users, get_streams, send_chat_message, get_chatters,
modify_channel_information, search_categories).
Done when
- The
twitchOAuth connection works;api.twitch.tvis approved - Read-only smoke (
./smoke-testor./get-me) returns the authenticated user - Chat / channel mutations are only run after you confirm the target channel and message or title/game change