2.0.1Twitch Channel object
(Object)
(TwitchCommandoClient)
Channel name
Channel ID
Send text message in the channel
(String)
Message text
Type: Object
(String?)
: Global settings key to save global bot preferences
(String?)
: Service url for Emotes service
(String?)
: Normal bot type (user, not mod)
(String?)
: Normal bot type with mod (user, channel mod)
(String?)
: Known bot
(String?)
: Verified bot
(String?)
: Enumeration for message limits configuration
Client configuration options
Type: Object
(Boolean)
: Enable verbose logging (default: false)
(String)
: Bot username
(String)
: Bot oauth password (without oauth:)
(String)
: Default command prefix (default: !)
(Boolean)
: Denotes if the bot must send a message when join a channel (default: false)
(String)
: On Join message (sent if greetOnJoin = true)
(Boolean)
: Denotes if the bot must autojoin its own channel (default: true)
(Boolean)
: Denotes if enable the !join and !part command in bot channel (default: true)
(String)
: Define the bot type, will be used for message limits control. See CommandoConstants for available bot type values (default: BOT_TYPE_NORMAL)
(Boolean)
: Enable Rate Limiting control (default: true)
(Boolean)
: Skip PART\JOIN events (default: true)
(Boolean)
: Enable Verbose Logging up to debug level (default: false)
(Number)
: TMI Join Interval in milliseconds (default: 350ms instead of default tmi 2000ms)
The Commando Client class
Extends EventEmitter
(ClientOptions)
Client configuration options
Enable verbose logging
Connect the bot to Twitch Chat
Register default commands, like !help
Set Settings Provider class
(any)
Checks if the message author is one of bot owners
(TwitchChatUser)
Message author
Boolean:
Bot connected
Channel joined or someone join the channel
Bot disonnects
Message received
Command executed
Command error
Connection timeout
Reconnection
Command argument
Type: Object
Command Options
Type: Object
(String)
: Command name
(Boolean)
: Restricted only to channel mods
(Boolean)
: Restricted only to bot owners
(Boolean)
: Restricted only to channel owner
(String)
: Command description
(Array<CommandArgument>)
: Arguments
(String)
: Command group
(Boolean)
: Restricted to bot channel only
(Boolean)
: Hide the command from help command
(Boolean)
: Restricted to privmsg only
Base class to implement custom commands
(TwitchCommandoClient)
The TwitchCommandoClient
(CommandOptions)
Command options
Method called when command is executed
(TwitchChatMessage)
Message received
(object)
Arguments parsed
This class represents the chat message
The author of the message
TwitchChatUser:
The channel where the message has been sent in
TwitchChatChannel:
Emotes contained in the message
This class represents a chat user
(Object)
(TwitchCommandoClient)