Beispiel #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);
     }
 }
Beispiel #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);
 }
Beispiel #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));
 }
Beispiel #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);
 }
Beispiel #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));
 }
Beispiel #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);
 }
Beispiel #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
     });
 }
Beispiel #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() });
 }
Beispiel #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() });
            }
        }
Beispiel #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
                });
            }
        }
Beispiel #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
                });
            }
        }
Beispiel #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);
 }
Beispiel #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);
 }