Twitch commands plugin for slate-irc.
const irc =const twitch =const client =clientclient
Returns a plugin for .use() with
twitchinit()yourself. Defaults to false.
CAP REQ :twitch.tv/tags.) Defaults to false.
CAP REQ :twitch.tv/membership.) Defaults to true.
Initialises Twitch-specific IRC functionality by sending a capability request and a TWITCHCLIENT message.
Sends a capability request. Asks for
twitch.tv/commands normally, and for
twitch.tv/commands twitch.tv/tags if the
tags option is enabled.
Sends a TWITCHCLIENT message.
Gets the list of moderators on a channel. The callback takes
(error, mods), Node-style,
mods is an array of moderator usernames.
Called when a moderators message is received, usually after a
Bans a user from the given channel.
Unbans a user from the given channel.
Clears the chat.
Sets your user colour.
color is a hex sextet, eg. "#FF00FF". Non-turbo users can only
choose from a specific set of colours.
Starts a commercial on the stream. Duration can be 30, 60, 90, 120, 150 or 180.
Start hosting an other channel.
Stop hosting the other channel.
Give moderator status to a user.
Remove moderator status from a user.
Enable R9K anti-spam in the chat.
Disable R9K anti-spam in the chat.
Enable slow mode.
Disable slow mode.
Enable subscriber-only mode.
Disable subscriber-only mode.
Times out a user for
duration seconds. This will stop them from chatting
for the given amount of seconds; 10 minutes by default.