public void BeginSession(BotStreamConnect data) { ravenfall.BeginSession(data.Session); twitch.JoinChannel(data.Session); //if (!string.IsNullOrEmpty(data.TwitchId)) //{ // // use the twitch API to get the channel name using the twitch ID // // data.TwitchId // twitch.JoinChannel(data.Session); // if we have a twitch id //} //if (!string.IsNullOrEmpty(data.TouTubeId)) //{ // youtube.Join(data.TwitchId); //} }
private void OnSessionUpdated(object sender, GameSessionUpdateEventArgs e) { twitch.LeaveChannel(e.OldName); twitch.JoinChannel(e.NewName); }