Example #1
0
 private void FiveMinutePing()
 {
     while (true)
     {
         _client.SendIRCMessage("PING");
         Thread.Sleep(300000);
     }
 }
Example #2
0
        public void Run()
        {
            EstablishConnection();

            bool exit = false;

            while (!exit)
            {
                string ircMessage = client.ReadMessage();

                _eventLog.NewLogEntry(ircMessage);
                if (ircMessage == "PING :tmi.twitch.tv")
                {
                    client.SendIRCMessage("PONG");
                    _eventLog.NewLogEntry("PONG");
                }
                if (ircMessage.Contains("PRIVMSG"))
                {
                    string messengerName   = ircMessage[1..ircMessage.IndexOf("!")];