-
Notifications
You must be signed in to change notification settings - Fork 7
mTwitch.Core.mrc
Contains common functionality that may be required by all other mTwitch scripts.
- Determines if connection or address is a twitch server.
- Requests all IRCv3 message tags supported by Twitch.
- Tracks the state (hosting, sub only, slow, r9k beta) of chat.
- Converts channel names to lowercase as twitch's stream names are case-sensitive.
- Injects an
RPL_SUPPORTto twitch-server connections defining the network astwitch.tvorgroup.twitch.tvrespectively.
$mTwitch.has.core:
Returns the version of
mTwitch.Core.mrcinstalled
$mTwitch.isServer:
Returns
$trueif the active connection is connected to a twitch IRC server
$mTwitch.isServer(address):
Returns
$trueif the specifiedaddressis one of twitch's IRC servers
$mTwitch.isServer().isGroup:
Returns
$trueif the active connection is connected to one of twitch's Group Chat IRC servers
$mTwitch.isServer(address).isGroup:
Returns
$trueif the specifiedaddressis one of twitch's group IRC servers.
$mTwitch.StreamIsHosting(#stream):
Returns the name of the hosted stream if the specified
streamis hosting someone else's.
$mTwitch.ChatIsSubOnly(#stream):
Returns
$trueif the specified#stream's chat is in sub-only mode
$mTwitch.ChatIsSlow(#stream):
Returns
$trueif the specified#stream's chat is in slow mode
$mTwitch.ChatIsSlow(#stream).dur:
Returns the slow duration if the specified
#stream's chat is in slow mode
$mTwitch.ChatIsR9K(#stream):
Returns
$trueif the specified#stream's chat is in r9k beta mode.