$ cnpm install slate-irc-twitch
Twitch commands plugin for slate-irc.
const irc = require('slate-irc')
const twitch = require('slate-irc-twitch')
const client = irc(stream)
client.use(twitch({ init: true
, tags: false }))
client.ban('#my_stream', 'annoying_user')
Returns a plugin for .use() with slate-irc
. Options:
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, where mods
is an array of moderator usernames.
Called when a moderators message is received, usually after a .mods()
call.
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.
Copyright 2014 - 2017 © taobao.org |