Channel - Go Live Event
Description
The ChannelGoLiveEvent is triggered when a monitored channel goes live.
Dependencies
Requires the specific channels to be registered with the TwitchClient Helper. See TwitchClientHelper
Examples
Example 1
- Java
- Kotlin
- Groovy
eventManager.onEvent(ChannelGoLiveEvent.class, event -> {
System.out.println("[" + event.getChannel().getName() + "] went live with title " + event.getTitle() + " on game " + event.getGameId() + "!");
});
eventManager.onEvent(ChannelGoLiveEvent::class.java) { event ->
println("[${event.channel.name}] went live with title ${event.title} on game ${event.gameId}!");
}
eventManager.onEvent(ChannelGoLiveEvent) { event ->
System.out.println "[${event.channel.name}] went live with title ${event.title} on game ${event.gameId}!"
}