Esempio n. 1
0
 private void Client_OnFailureToReceiveJoinConfirmation(object sender, OnFailureToReceiveJoinConfirmationArgs e)
 {
     form.ExecuteAction(() =>
     {
         form.DebugRichTextBox.AppendText($"Authentification failed, are the settings okay?\n");
     });
 }
Esempio n. 2
0
        private async void OnFailureToReceiveJoinConfirmation(object sender, OnFailureToReceiveJoinConfirmationArgs e)
        {
            await Task.Delay(1000);

            if (client.IsConnected)
            {
                JoinChannel(e.Exception.Channel);
            }
        }
Esempio n. 3
0
 private void Client_OnFailureToReceiveJoinConfirmation(object sender, OnFailureToReceiveJoinConfirmationArgs e)
 {
     if (!loginError && mainForm.BotConnected)
     {
         mainForm.ChangeConnectionStatusLabel("Error!", true);
         mainForm.ShowMessageBoxError("Connection Error!", "Can't connect to " + Properties.Settings.Default.channelName.ToLower() + " channel's!\nPlease, check channel's name and try again.");
         client.Disconnect();
     }
 }
Esempio n. 4
0
 private void OnFailedJoinChannel(object sender, OnFailureToReceiveJoinConfirmationArgs e)
 {
     this.Dispatcher.Invoke(() =>
     {
         butConnect.IsEnabled    = true;
         txtChannel.IsEnabled    = true;
         butDisconnect.IsEnabled = false;
     });
 }
Esempio n. 5
0
 public static void OnFailureToReceiveJoinConfirmation(object sender, OnFailureToReceiveJoinConfirmationArgs e)
 {
 }
Esempio n. 6
0
 /// <summary>
 /// Passes <see cref="OnFailureToReceivejoinConfirmation"/> events down to subscribed plugins.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">An <see cref="OnFailureToReceiveJoinConfirmationArgs"/> object.</param>
 private void TwitchClient_OnFailureToReceiveJoinConfirmation(object sender, OnFailureToReceiveJoinConfirmationArgs e) => this.OnFailureToReceiveJoinConfirmation?.Invoke(this, e);
Esempio n. 7
0
 private void ConnectButton_OnJoinFailed(object sender, OnFailureToReceiveJoinConfirmationArgs e)
 {
     ChangeButtonLayout("Connect", Color.green, true);
 }
Esempio n. 8
0
 private void Client_OnFailureToReceiveJoinConfirmation(object sender, OnFailureToReceiveJoinConfirmationArgs e)
 {
     form.AppendLogLine($"!!! Failed to recieve join confirmation from {e.Exception.Channel}.");
     client.Disconnect();
 }
Esempio n. 9
0
 private void _client_OnFailureToReceiveJoinConfirmation(object sender, OnFailureToReceiveJoinConfirmationArgs e)
 {
 }
Esempio n. 10
0
 private void OnFailureToReceiveJoinConfirmation(object sender, OnFailureToReceiveJoinConfirmationArgs e)
 {
     this.JoinedChannel = null;
     UpdateStatus("Could not join channel");
 }
Esempio n. 11
0
 private void OnJoinChannelFailure(object sender, OnFailureToReceiveJoinConfirmationArgs e)
 {
     Debug.Log("<color=red> ERROR:  " + e.Exception + "</color>");
 }
Esempio n. 12
0
 private static void Client_OnFailureToReceiveJoinConfirmation(object sender, OnFailureToReceiveJoinConfirmationArgs e)
 {
     //Console.WriteLine($"Failed to connect to {e.Exception.Channel}, adding it to blacklist");
     addToBlacklist(e.Exception.Channel, "failed to connect");
 }