protected void channel_UserJoined(IRC.Channel chan, IRC.UserInfo ui) { var dt = DateTime.Now; Console.WriteLine("[" + dt.Hour.ToString("00") + ":" + dt.Minute.ToString("00") + "] User " + ui.Nick + " joined."); // TODO: Greeting Support }
protected void channel_ChatMessageRecieved(IRC.Channel chan, IRC.UserInfo user, string message) { var dt = DateTime.Now; Console.WriteLine("[" + dt.Hour.ToString("00") + ":" + dt.Minute.ToString("00") + "] " + user.Nick + ": " + message); if (message.StartsWith("!")) { int i = 0; // TODO: Command Support } }
protected void ircClient_Connected() { Channel = ircClient.JoinChannel(this.ChannelName); Channel.ChatMessageRecieved += channel_ChatMessageRecieved; Channel.UserJoined += channel_UserJoined; Channel.UserParted += channel_UserParted; if (this.Connected != null) { this.Connected(); } }
protected void channel_UserParted(IRC.Channel chan, IRC.UserInfo ui) { var dt = DateTime.Now; Console.WriteLine("[" + dt.Hour.ToString("00") + ":" + dt.Minute.ToString("00") + "] User " + ui.Nick + " left."); }