Twitch Module
Full Twitch integration — chat, events, moderation, channel points, and more.
The Twitch module connects your Twitch channel to Rawtoh. It captures everything that happens on your stream — chat messages, subs, raids, bits, channel points — and lets your automations react to it instantly.
Events
The Twitch module emits events for everything that happens on your channel. Use these as triggers to start your automations.
Chat events
| Event | Description |
|---|---|
chat.message | A message is sent in chat |
chat.action | A /me action message |
chat.sub | Someone subscribes |
chat.resub | Someone resubscribes |
chat.sub_gift | A subscription is gifted |
chat.community_sub | Multiple subs gifted at once |
chat.raid | A raid arrives |
chat.ban | A user is banned |
chat.timeout | A user is timed out |
chat.announcement | An announcement is sent |
chat.whisper | A whisper is received |
Channel events (EventSub)
| Event | Description |
|---|---|
eventsub.stream_online | Stream goes live |
eventsub.stream_offline | Stream goes offline |
eventsub.channel_follow | New follower |
eventsub.channel_cheer | Bits cheered |
eventsub.channel_raid | Channel raided |
eventsub.channel_reward_redemption_add | Channel point reward redeemed |
eventsub.channel_poll_begin | Poll started |
eventsub.channel_poll_end | Poll ended |
eventsub.channel_prediction_begin | Prediction started |
eventsub.channel_hype_train_begin | Hype train started |
eventsub.channel_ad_break_begin | Ad break started |
What you can do
Call these methods from your actions to interact with Twitch:
Chat
chat.say— send a message in chatchat.send_announcement— send an announcementchat.shoutout— shoutout another streamerchat.get_chatters— get the list of viewers
Channel
channel.update— change title, game, language, or tagschannel.get_info— get channel infochannel.get_follower_count— get follower countchannel.start_commercial— run an ad
Moderation
moderation.ban/moderation.timeout/moderation.unbanmoderation.delete_messages— delete messagesmoderation.add_moderator/moderation.remove_moderator
Polls, predictions & raids
polls.create/polls.endpredictions.create/predictions.resolveraids.start/raids.cancelclips.create— create a clip
Channel points & VIPs
channel_points.get_rewards/channel_points.create_rewardvips.get/vips.add/vips.remove
Example automations
- New subscriber → send a personalized thank-you in chat, update a sub counter overlay
- Raid arrives → shoutout the raider, switch OBS to a welcome scene
- Channel point reward redeemed → change the stream title, play a sound in OBS
- Chat command → filter by message content, reply with dynamic info from storage
- Hype train starts → post in Discord, update board with hype train status