Skip to content

mTwitch.StateToTopic.mrc

SReject edited this page Nov 12, 2015 · 2 revisions

Overview

This module makes use of the IRC standard for channel topics to inject stream/chat state information into each stream chat's topic.

Functionality

After joining a stream's chat various information about the stream is retrieved from Twitch's webapi and dependant on the state of the stream that information is used to set the channel topic.

If the stream is online the topic is set to:
Online since [time] -- Playing: [game] -- Title: [title] -- [Chat State Info]

If the stream is offline the topic is set to:
Offline -- [Chat State Info]

[time]: The time the stream last went live
[game]: The game the streamer indicated playing
[title]: The stream title
[Chat State Info]: A combination of chat modes that have been applied:
    [Hosting:Stream]: Specified if the streamer is hosting someone else; stream is the hosted channel
    [SubOnly]: Included if the chat is in Sub-Only mode
    [Slow:Xm]: Included if the chat is in slow mode where x is the length of time between being able to send messages
    [R9K]: Included if the chat is in R9KBeta mode