Skip to main content

Topic - Hype Train Events

Description​

This topic can be used to monitor hype train events for a specified channel.

With all undocumented topics, use at your own risk.

Method Definition​

NameTypeDescription
credentialOAuth2CredentialAuth Token (may not necessarily be required)
channelIdStringTarget Channel Id

Code-Snippets​

Subscribe to the topic for a given channel​

twitchClient.getPubSub().listenForHypeTrainEvents(credential, "149223493");

Listen for Hype Train Starts​

twitchClient.getEventManager().onEvent(HypeTrainStartEvent.class, System.out::println);

Listen for Hype Train Progression​

twitchClient.getEventManager().onEvent(HypeTrainProgressionEvent.class, System.out::println);

Listen for Hype Train Level Ups​

twitchClient.getEventManager().onEvent(HypeTrainLevelUpEvent.class, System.out::println);

Listen for Hype Train Ends​

twitchClient.getEventManager().onEvent(HypeTrainEndEvent.class, System.out::println);

Listen for Conductor Updates​

twitchClient.getEventManager().onEvent(HypeTrainConductorUpdateEvent.class, System.out::println);

Listen for Cooldown Expiration​

twitchClient.getEventManager().onEvent(HypeTrainCooldownExpirationEvent.class, System.out::println);