Пример #1
0
 private void GohaTV_MessageReceived(object sender, IrcMessageEventArgs e)
 {
     if (this.messageReceived != null)
     {
         GohaTVMessage msg = new GohaTVMessage();
         msg.Name = e.Source.Name;
         msg.Text = e.Text;
         if (e.Text.Contains(channelName))
             msg.ToStreamer = true;
         else
             msg.ToStreamer = false;
         messageReceived(sender, msg);
     }
 }
Пример #2
0
 private void Twitch_MessageReceived(object sender, IrcMessageEventArgs e)
 {
     if (this.messageReceived != null)
     {
         TwitchMessage tm = new TwitchMessage();
         tm.date = DateTime.Now;
         tm.Name = e.Source.Name;
         tm.ToName = "";
         tm.Text = e.Text;
         messageReceived(sender, tm);
     }
     Thread.Sleep(100);
 }
Пример #3
0
 private void OnTwitchMessageReceivedLocal(object sender, IrcMessageEventArgs e)
 {
     SendMessage(new Message(String.Format("{1} ({0}{2})", e.Source, e.Text, "@twitch.tv"), EndPoint.TwitchTV, EndPoint.SteamAdmin));
 }
Пример #4
0
 private void OnTwitchNoticeReceived(object sender, IrcMessageEventArgs e)
 {
     var m = new Message(String.Format("{1} ({0}{2})", e.Source, e.Text, "@twitch.tv"), EndPoint.TwitchTV, EndPoint.SteamAdmin);
     SendMessage(m);
 }
Пример #5
0
 private void OnGohaNoticeReceivedLocal(object sender, IrcMessageEventArgs e)
 {
     SendMessage(new Message(String.Format("{1} ({0}{2})", e.Source, e.Text, "@goha.tv"), EndPoint.Gohatv, EndPoint.SteamAdmin));
 }
Пример #6
0
 private void OnGohaNoticeReceived(object sender, IrcMessageEventArgs e)
 {
     var m = new Message(String.Format("{1} ({0})", e.Source, e.Text), EndPoint.Gohatv, EndPoint.SteamAdmin);
     SendMessage(m);
 }
Пример #7
0
 private void OnGohaMessageReceived(object sender, IrcMessageEventArgs e)
 {
     SendMessage(new UbiMessage(String.Format("{0}", e.Text), EndPoint.Gohatv, EndPoint.SteamAdmin) 
     { 
         FromName = e.Source.ToString(),
         NickColor = settings.gohaNickColor,
         TextOnly = false
     });
 }
Пример #8
0
 private void OnGohaNoticeReceived(object sender, IrcMessageEventArgs e)
 {
     SendMessage(new UbiMessage(String.Format("{0}", e.Text), EndPoint.Gohatv, EndPoint.SteamAdmin) { FromName = e.Source.ToString() });
 }
Пример #9
0
        private void OnTwitchNoticeReceived(object sender, IrcMessageEventArgs e)
        {
            lock (lockTwitchMessage)
            {

                SendMessage(new UbiMessage(String.Format("{0}", e.Text), EndPoint.TwitchTV, EndPoint.SteamAdmin) { FromName = e.Source.ToString() });
            }
        }
Пример #10
0
        private void OnTwitchMessageReceived(object sender, IrcMessageEventArgs e)
        {
            lock (lockTwitchMessage)
            {

                SendMessage(new UbiMessage(String.Format("{0}", e.Text), EndPoint.TwitchTV, EndPoint.SteamAdmin) 
                { 
                    FromName = e.Source.ToString(),
                    NickColor = settings.twitchNickColor,
                    TextOnly = false
                });
            }
        }
Пример #11
0
        private void OnTwitchMessageReceivedLocal(object sender, IrcMessageEventArgs e)
        {
            lock (lockTwitchMessage)
            {
                if (e.Text.Contains("HISTORYEND") ||
                    e.Text.Contains("USERCOLOR") ||
                    e.Text.Contains("EMOTESET"))
                    return;

                SendMessage(new UbiMessage(String.Format("{0}", e.Text), EndPoint.TwitchTV, EndPoint.SteamAdmin) 
                { 
                    FromName = e.Source.ToString(),
                    NickColor = settings.twitchNickColor,
                    TextOnly = false
                });
            }
        }
Пример #12
0
 /// <summary>
 /// Raises the <see cref="NoticeReceived"/> event.
 /// </summary>
 /// <param name="e">The <see cref="IrcMessageEventArgs"/> instance containing the event data.</param>
 protected virtual void OnNoticeReceived(IrcMessageEventArgs e)
 {
     var handler = this.NoticeReceived;
     if (handler != null)
         handler(this, e);
 }
Пример #13
0
 /// <summary>
 /// Raises the <see cref="MessageSent"/> event.
 /// </summary>
 /// <param name="e">The <see cref="IrcMessageEventArgs"/> instance containing the event data.</param>
 protected virtual void OnMessageSent(IrcMessageEventArgs e)
 {
     var handler = this.MessageSent;
     if (handler != null)
         handler(this, e);
 }