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); } }
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); }
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)); }
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); }
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)); }
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); }
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 }); }
private void OnGohaNoticeReceived(object sender, IrcMessageEventArgs e) { SendMessage(new UbiMessage(String.Format("{0}", e.Text), EndPoint.Gohatv, EndPoint.SteamAdmin) { FromName = e.Source.ToString() }); }
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() }); } }
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 }); } }
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 }); } }
/// <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); }
/// <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); }