Esempio n. 1
0
        /// <summary>
        /// Raises the <see cref="LeftChannel"/> event.
        /// </summary>
        /// <param name="e">The <see cref="IrcChannelEventArgs"/> instance containing the event data.</param>
        protected virtual void OnLeftChannel(IrcChannelEventArgs e)
        {
            var handler = this.LeftChannel;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Esempio n. 2
0
 private void OnTwitchChannelJoinLocal(object sender, IrcChannelEventArgs e)
 {
     e.Channel.MessageReceived += OnTwitchMessageReceived;
     e.Channel.UserJoined += OnTwitchChannelJoin;
     e.Channel.UserLeft += OnTwitchChannelLeft;
     SendMessage(new Message(String.Format("Twitch: bot joined!"), EndPoint.TwitchTV, EndPoint.SteamAdmin));
     checkMark.SetOn(pictureTwitch);
 }
Esempio n. 3
0
 private void OnTwitchChannelLeftLocal(object sender, IrcChannelEventArgs e)
 {
     SendMessage(new Message(String.Format("Twitch: bot left!"), EndPoint.TwitchTV,
         EndPoint.SteamAdmin));
 }
Esempio n. 4
0
 private void OnGohaChannelLeftLocal(object sender, IrcChannelEventArgs e)
 {
     SendMessage(new Message(String.Format("Goha: bot left!"), EndPoint.Gohatv,
         EndPoint.SteamAdmin));
 }
Esempio n. 5
0
        private void OnGohaChannelJoinLocal(object sender, IrcChannelEventArgs e)
        {
            e.Channel.MessageReceived += OnGohaMessageReceived;
            e.Channel.UserJoined += OnGohaChannelJoin;
            e.Channel.UserLeft += OnGohaChannelLeft;
            SendMessage(new Message(String.Format("Goha: bot joined!"), EndPoint.Gohatv, EndPoint.SteamAdmin));

            //gohaIrc.SendRawMessage("NICK " + settings.GohaUser);
            checkMark.SetOn(pictureGoha);
            gohaIrc.LocalUser.SendMessage("NickServ", String.Format("IDENTIFY {0}", settings.GohaPassword));
  
        }
Esempio n. 6
0
        private void OnGohaChannelJoinLocal(object sender, IrcChannelEventArgs e)
        {
            e.Channel.MessageReceived += OnGohaMessageReceived;
            e.Channel.UserJoined += OnGohaChannelJoin;
            e.Channel.UserLeft += OnGohaChannelLeft;

            //gohaIrc.SendRawMessage("NICK " + settings.GohaUser);
            gohaIrc.LocalUser.SendMessage("NickServ", String.Format("IDENTIFY {0}", settings.GohaPassword));
  
        }
Esempio n. 7
0
        private void OnTwitchChannelJoinLocal(object sender, IrcChannelEventArgs e)
        {
            lock (lockTwitchConnect)
            {
                e.Channel.UserJoined += OnTwitchChannelJoin;
                e.Channel.UserLeft += OnTwitchChannelLeft;
                e.Channel.MessageReceived += OnTwitchMessageReceived;
                chatStatusTwitch.On = true;
                SendMessage(new UbiMessage(String.Format("Twitch IRC: logged in!"), EndPoint.TwitchTV, EndPoint.Notice));
                twitchIrc.PongReceived += new EventHandler<IrcPingOrPongReceivedEventArgs>(twitchIrc_PongReceived);
                twitchPing.Change(0, 30000);

            }
        }
Esempio n. 8
0
 /// <summary>
 /// Raises the <see cref="LeftChannel"/> event.
 /// </summary>
 /// <param name="e">The <see cref="IrcChannelEventArgs"/> instance containing the event data.</param>
 protected virtual void OnLeftChannel(IrcChannelEventArgs e)
 {
     var handler = this.LeftChannel;
     if (handler != null)
         handler(this, e);
 }