Chatbots & IRC:
Twitch IRC Capability:
Channel Membership
Overview
This guide explains the Twitch IRC channel membership capabilities.
| Command | Description |
|---|---|
| JOIN | Join a channel. |
| MODE | Gain/lose moderator (operator) status in a channel. |
| NAMES | List current chatters in a channel. |
| PART | Depart from a channel. |
JOIN (Twitch Membership)
Join a channel.
Prototype
> :!@.tmi.twitch.tv JOIN #
Example: ronni joined the dallas channel.
> :ronni!ronni@ronni.tmi.twitch.tv JOIN #dallas
MODE (Twitch Membership)
Gain/lose moderator (operator) status in a channel.
Prototype
> :jtv MODE # +o
> :jtv MODE # -o
Example: ronni got moderator status in the dallas channel.
> :jtv MODE #dallas +o ronni
NAMES (Twitch Membership)
List current chatters in a channel. If there are more than 1000 chatters in a room, NAMES return only the list of operator privileges currently in the room. The code stops sending JOIN/PART updates when the room size exceeds 1k. After that, it only sends “MODE changes” (any of the +o and -o commands above).
Prototype
> :.tmi.twitch.tv 353 = # :
> :.tmi.twitch.tv 353 = # : ...
> :.tmi.twitch.tv 366 # :End of /NAMES list
Example: The chatters in the dallas channel are ronni, fred, wilma, barney, and betty.
> :ronni.tmi.twitch.tv 353 ronni = #dallas :ronni fred wilma
> :ronni.tmi.twitch.tv 353 ronni = #dallas :barney betty
> :ronni.tmi.twitch.tv 366 ronni #dallas :End of /NAMES list
PART (Twitch Membership)
Depart from a channel.
Prototype
> :!@.tmi.twitch.tv PART #
Example: ronni left the dallas channel.
> :ronni!ronni@ronni.tmi.twitch.tv PART #dallas