示例#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);
 }