Exemple #1
0
        private void OnConnected(object sender, TwitchLib.Client.Events.OnConnectedArgs e)
        {
            Debug.Log($"The bot {e.BotUsername} succesfully connected to Twitch.");

            if (!string.IsNullOrWhiteSpace(e.AutoJoinChannel))
            {
                Debug.Log($"The bot will now attempt to automatically join the channel provided when the Initialize method was called: {e.AutoJoinChannel}");
            }
        }
Exemple #2
0
 private void Client_OnConnected(object sender, TwitchLib.Client.Events.OnConnectedArgs e)
 {
     //    client.ChatThrottler = new MessageThrottler(client, 20, TimeSpan.FromSeconds(30));
     logger.Trace("Connected to twitch");
     //client.WhisperThrottler.StartQueue();
     //client.ChatThrottler.StartQueue();
     foreach (var channel in config.JoinedChannels.Keys)
     {
         logger.Trace($"Joining {channel}");
         client.JoinChannel(channel);
     }
 }
Exemple #3
0
        private void Client_OnConnected(object sender, TwitchLib.Client.Events.OnConnectedArgs e)
        {
            Logger.Instance.LogMessage(TracingLevel.INFO, $"Connected to chat room: {e.AutoJoinChannel}");

            if (monitoredStreamers != null)
            {
                foreach (var streamer in monitoredStreamers)
                {
                    client.JoinChannel(streamer);
                    Logger.Instance.LogMessage(TracingLevel.INFO, $"Connecting to chat room: {streamer}");
                }
            }
        }
 private void Client_OnConnected(object sender, TwitchLib.Client.Events.OnConnectedArgs e)
 {
     client.SendMessage(TwitchInfo.ChannelName, $"Hi to everyone. I am Sonequabot and I am alive. Again.");
 }
Exemple #5
0
 private static void OnConnected(object sender, Client.Events.OnConnectedArgs connected) => LoggingManager.Log.Info("Connected to Twitch");
Exemple #6
0
 private void _TwitchClient_OnConnected(object sender, TwitchLib.Client.Events.OnConnectedArgs e)
 {
     _TwitchClient.AddChatCommandIdentifier('!');
     _TwitchClient.SendMessage(BotAppSettings.ChannelName, $"O pai ta on! {EmotesConsts.PogChamp}");
     Console.WriteLine($"Twitch bot conectado às {DateTime.Now}");
 }
 private void Client_OnConnected(object sender, TwitchLib.Client.Events.OnConnectedArgs e)
 {
     _twitchLibClient.SendMessage(_twitchConfiguration.ChannelName, $"Hi to everyone. I am AmazingTwitchBot and I am alive. Again. Somehow.");
 }
Exemple #8
0
        private void Client_OnConnected(object sender, TwitchLib.Client.Events.OnConnectedArgs e)
        {
            Console.WriteLine("Chat Reader connected!");

            Auth.SaveAuth(currentAuth.TwitchUsername, currentAuth.TwitchOAuth);
        }
Exemple #9
0
 private void Client_OnConnected(object sender, TwitchLib.Client.Events.OnConnectedArgs e)
 {
     Console.WriteLine($"{e.BotUsername} has connected to {e.AutoJoinChannel}");
 }
 /// <summary>
 /// Clients the on connected.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The e.</param>
 private void _client_OnConnected(object sender, TwitchLib.Client.Events.OnConnectedArgs e)
 {
     _logger.LogInformation("Connected to Twitch as '{username}'", _settings.Twitch.Username);
 }
        private void ChatClient_OnConnected(object sender, TwitchLib.Client.Events.OnConnectedArgs e)
        {
#if DEBUG
            Trace.WriteLine($"Connected bot of username: {e.BotUsername} to channel: {e.AutoJoinChannel}");
#endif
        }
Exemple #12
0
 private static void TwitchClient_OnConnected(object sender, TwitchLib.Client.Events.OnConnectedArgs e)
 {
     Console.WriteLine("Connected~");
     con = true;
 }
Exemple #13
0
 private void OnConnected(object sender, TwitchLib.Client.Events.OnConnectedArgs e)
 {
     Debug.Log($"The bot {e.BotUsername} successfully connected to Twitch channel {_client.JoinedChannels[0].Channel}");
     PostMessage("Hello!");
 }
Exemple #14
0
 private void _client_OnConnected(object sender, TwitchLib.Client.Events.OnConnectedArgs e)
 {
     _logger.Log(_logId++, "Bot connected", DateTime.Now);
 }
 private void Client_OnConnected1(object sender, TwitchLib.Client.Events.OnConnectedArgs e)
 {
     client.SendMessage(client.JoinedChannels[0], "Bot connected");
 }
 private void Client_OnConnected(object sender, TwitchLib.Client.Events.OnConnectedArgs e)
 {
 }
Exemple #17
0
 /// <summary>
 /// Event handler for the TwitchClient OnConnected event.
 /// </summary>
 private void TwitchClient_OnConnected(object sender, TwitchLib.Client.Events.OnConnectedArgs e)
 {
     SendChatMessage("Connected to Twitch!");
 }
 private void Client_OnConnected(object sender, TwitchLib.Client.Events.OnConnectedArgs e)
 {
     Logger.Instance.LogMessage(TracingLevel.INFO, $"Connected to chat room: {e.AutoJoinChannel}");
 }
Exemple #19
0
 private void Client_OnConnected(object sender, TwitchLib.Client.Events.OnConnectedArgs e)
 {
     //client.SendMessage(client.JoinedChannels.FirstOrDefault(), "Eccomi! Pronto a rovinarti la giornata!");
 }