Channel

new Channel(tool)

This module polls channel and stream data on a regular basis and emits events on changes
Parameters:
Name Type Description
tool TTVTool
Fires:

Extends

  • EventEmitter

Events

channeloffline

Fires when the channel goes offline.

channelonline

Fires when the channel goes online.

gamechange

Fires when the game of the channel changes
Parameters:
Name Type Description
newgame String The new game of the channel

statuschange

Fires when the channel status/title changes
Parameters:
Name Type Description
newtitle String The new title/status of the channel

viewers

Fires on every data polling and brings you the current viewers count
Parameters:
Name Type Description
viewers Number Number of current viewers