protected virtual void OnLeaveChannel(object sender, OnLeftChannelArgs args) { Task.Run(async() => { try { if (args.Channel.Trim().ToLower() == args.Channel.Trim().ToLower()) { await FireConnectionServerBotEventAsync(sender, new ConnectionServerBotEventArgs { ConnectionServerEventType = ConnectionServerEventType.DisconnectedFromServer, ConnectionEventType = ConnectionEventType.DisconnectedFromTwitch, Server = this, Bot = _bot }); } } catch (Exception ex) { await FireErrorEventAsync(sender, new ErrorBotServerConnectEventArgs { Bot = _bot, ErrorBotServerConnectEventType = ErrorBotServerConnectEventType.LeaveChannel, Exception = ex, Server = this }); } }); }
private void Client_OnLeftChannel(object sender, OnLeftChannelArgs e) { if (BotEnvironment.Settings["show.debug"] == "true") { Logger.WriteLine("Client_OnLeftChannel", Color.DarkCyan); } }
private void TwitchClient_OnLeftChannel(object sender, OnLeftChannelArgs e) { client.OnLeftChannel -= TwitchClient_OnLeftChannel; leaveChannelCompletionTask.SetResult(true); leaveChannelCompletionTask = new TaskCompletionSource <bool>(); }
private void OnLeftChannel(object sender, OnLeftChannelArgs e) { this.JoinedChannel = null; UpdateStatus($"Left channel {e.Channel}"); StopTimer(); }
private void OnLeftChannel(object sender, OnLeftChannelArgs e) { //Wenn CHannel verlassen wurde, neu beitreten. if (client.IsConnected) { client.JoinChannel(txtChannel1.Text); } }
private void Client_OnLeftChannel(object sender, OnLeftChannelArgs e) { consoleMessage[1] = "#"; consoleMessage[3] = e.BotUsername; consoleMessage[4] = e.Channel; consoleMessage[5] = "Left Channel"; Program.SendToConsole(consoleMessage); }
private async Task Client_OnLeftChannel(object sender, OnLeftChannelArgs e) { var date = DateTime.UtcNow; _logger.LogInformation( $"{DateTime.UtcNow.ToString(CultureInfo.CurrentUICulture)}: Completed leaving the channel {e.Channel}"); await _calculator.CalculateStreamStatistics(e.Channel, date).ConfigureAwait(false); }
/// <summary> /// [handler] ПОКИНУТЬ канал /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void onChannelLeft(object sender, OnLeftChannelArgs e) { CheckForIllegalCrossThreadCalls = false; printInfo("Succefully left channel '" + currChannel + "'!"); currChannel = ""; client.OnLeftChannel -= onChannelLeft; }
private void onLeftChannel(object sender, OnLeftChannelArgs e) { Dispatcher.Invoke(new Action(() => { Model.Client.OnLeftChannel -= onLeftChannel; _messageSendTimer.Stop(); _whisperSendTimer.Stop(); //SendChatMessage("Knowledge is power."); })); }
private void Client_OnLeftChannel(object sender, OnLeftChannelArgs e) { BotDisconnectedArgs args = new BotDisconnectedArgs { Channel = e.Channel }; Console.WriteLine("Just left " + e.Channel); BotDisconnected?.Invoke(this, args); }
private void OnLeftChannel(object sender, OnLeftChannelArgs e) { this.Dispatcher.Invoke(() => { spChatLines.Children.Clear(); butConnect.IsEnabled = true; txtChannel.IsEnabled = true; butDisconnect.IsEnabled = false; }); }
private void TwitchClient_OnLeftChannel(Object sender, OnLeftChannelArgs e) { Writer.WriteLine($"Left channel {e.Channel}"); if (e.Channel == TwitchClientManager.PrimaryChannelName) { TwitchClientManager.PrimaryChannelName = TwitchClientManager.Client.JoinedChannels?[0].Channel ?? null; Writer.WriteLine($"Primary channel updated to {TwitchClientManager.PrimaryChannelName}"); } }
/// <summary> /// Invokes the left channel. /// </summary> /// <param name="client">The client.</param> /// <param name="botUsername">The bot username.</param> /// <param name="channel">The channel.</param> public static void InvokeLeftChannel(this TwitchClient client, string botUsername, string channel) { OnLeftChannelArgs model = new OnLeftChannelArgs() { BotUsername = botUsername, Channel = channel }; client.RaiseEvent("OnLeftChannel", model); }
private void Client_OnLeftChannel(object sender, OnLeftChannelArgs e) { try { GetChannelProcessor(e.Channel)?.OnLeftChannel(sender); } catch (Exception ex) { Logger.Instance.Error($"[{0}] Unchaught exception: {ex.Info()}", MethodBase.GetCurrentMethod().Name); } }
private void Client_OnLeftChannel(object sender, OnLeftChannelArgs e) { logger.Information($"{e.BotUsername} left Channel {e.Channel}"); bus.Publish(new TwitchChannelLeftEvent(e.Channel)); }
private void OnTwitchLeftChannel(object sender, OnLeftChannelArgs e) { _logger.LogWarning("Leaving channel! : " + e.Channel); }
private static void Client_OnLeftChannel(object sender, OnLeftChannelArgs e) { string onlineMessage = $"RazBot has disconnected from Twitch [{e.Channel}]"; BotTools.LogLine($"RazBot: {onlineMessage}"); }
private void Client_OnLeftChannel(object sender, OnLeftChannelArgs e) { Console.WriteLine(TwitchInfo.BotUsername + "has left " + TwitchInfo.ChannelName); client.SendMessage(e.Channel, "Peace out!"); }
private void Client_OnLeftChannel(object sender, OnLeftChannelArgs e) => Console.WriteLine($"{DateTime.UtcNow.ToString(CultureInfo.InvariantCulture)}: Completed leaving the channel {e.Channel}");
/// <summary> /// Passes <see cref="OnLeftChannel"/> events down to subscribed plugins. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">An <see cref="OnLeftChannelArgs"/> object.</param> private void TwitchClient_OnLeftChannel(object sender, OnLeftChannelArgs e) => this.OnLeftChannel?.Invoke(this, e);
private void ClientOnOnLeftChannel(object sender, OnLeftChannelArgs e) { Debug.Log($"[Client] Left channel {e.Channel}, reconnecting"); _client.Reconnect(); }
private void Client_OnLeftChannel(object sender, OnLeftChannelArgs e) { LogUtil.LogText($"[{client.TwitchUsername}] - Left channel {e.Channel}"); client.JoinChannel(e.Channel); }
private void ConnectButton_OnLeftChannel(object sender, OnLeftChannelArgs e) { ChangeButtonLayout("Connect", Color.green, true); }
// Twitch events. private void Twitch_OnLeftChannel(object sender, OnLeftChannelArgs e) { // Leaving the channel does not happen here. // This happens in the RemoveViewer method. _logger.LogInformation($"Left Twitch Channel {e.Channel}"); }
/// <summary> /// Called when the Twitch bot has left the channel. /// </summary> private void Client_OnLeftChannel(object sender, OnLeftChannelArgs e) { Console.WriteLine($"[{e.Channel}] {e.BotUsername} has left the channel."); client.SendMessage(e.Channel, $"{e.BotUsername} is leaving the channel."); }
private void _client_OnLeftChannel(object sender, OnLeftChannelArgs e) { }
private void onLeftChannel(object sender, OnLeftChannelArgs e) { populateLeaveChannelsDropdown(); }
private void onLeftChannel(object sender, OnLeftChannelArgs e) { client.SendMessage("Leaving Channel " + e.Channel); }
private async void TwitchOnLeftChannel(object sender, OnLeftChannelArgs e) { await Program.BotEvents.RaiseTwitchOnChannelLeave(e.Channel, e.BotUsername); }
private void OnLeftChannel(object sender, OnLeftChannelArgs e) { Console.WriteLine($"{e.BotUsername} disconnected from channel #{e.Channel}."); }