onCommandSongRequest

Implements !songrequest, allowing viewers to request songs (actually YouTube videos or Spotify tracks) to be added to the streamer's playlist.

version(TwitchSupport && WithTwitchPlugin)
private
@IRCEventHandler().onEvent(IRCEvent.Type.CHAN).onEvent(IRCEvent.Type.SELFCHAN).permissionsRequired(Permissions.anyone).channelPolicy(ChannelPolicy.home).fiber(true).addCommand(IRCEventHandler.Command().word("songrequest").policy(PrefixPolicy.prefixed).description("Requests a song.").addSyntax("$command [YouTube link, YouTube video ID, Spotify link or Spotify track ID]")).addCommand(IRCEventHandler.Command().word("sr").policy(PrefixPolicy.prefixed).hidden(true))
void
onCommandSongRequest

See Also