Esempio n. 1
0
        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
        }
Esempio n. 2
0
        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
            }
        }
Esempio n. 3
0
        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.");
        }