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 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();
            }
        }
Esempio n. 4
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.");
        }