Skip to content

mTwitch.Core.mrc

SReject edited this page Nov 12, 2015 · 7 revisions

Overview

Contains common elements required by all scripts.

Functionality

Determines if connection or address is a twitch server.
Requests all ircv3 message tags supported by Twitch.
Tracks the state(hosting, sub only, Slow, R9kBeta) of chat.
Injects an RPL_SUPPORT(005 token) to twitch-server connections defining the network as twitch.tv or group.twitch.tv

Public Identifers

$mTwitch.has.core:
    Returns the version of mTwitch.Core.mrc installed

$mTwitch.isServer:
    Returns $true if the active connection is connected to a twitch IRC server

$mTwitch.isServer(address):
    Returns $true if the specified address is one of twitch's IRC servers

$mTwitch.isServer().isGroup:
    Returns $true if the active connection is connected to one of twitch's Group Chat IRC servers

$mTwitch.isServer(address).isGroup:
    Returns $true if the specified address is one of twitch's group IRC servers.

$mTwitch.StreamIsHosting(#stream):
    Returns the name of the hosted stream if the specified stream is hosting someone else's.

$mTwitch.ChatIsSubOnly(#stream):
    Returns $true if the specified #stream's chat is in sub-Only mode

$mTwitch.ChatIsSlow(#stream):
    Returns the slow duration if the specified #stream's chat is in slow mode

$mTwitch.ChatIsR9K(#stream):
    Returns $true if the specified #stream's chat is in R9KBeta mode.

Clone this wiki locally