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 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."); }