示例#1
0
        private static void Main(string[] args)
        {
            IRCConfig conf = new IRCConfig();

            conf.name    = "RENE_COTY";
            conf.nick    = "RENE_COTY";
            conf.port    = 6667;
            conf.channel = "###braisnchat";
            conf.server  = "chat.freenode.net";
            using (var bot = new IRCBot(conf))
            {
                conf.joined = false;
                bot.Connect();
                bot.IRCWork();
            }
            Console.WriteLine("Bot quit/crashed");
            Console.ReadLine();
        }
示例#2
0
文件: Program.cs 项目: Timst/BchatBot
 private static void Main(string[] args)
 {
     IRCConfig conf = new IRCConfig();
     conf.name = "RENE_COTY";
     conf.nick = "RENE_COTY";
     conf.port = 6667;
     conf.channel = "###braisnchat";
     conf.server = "chat.freenode.net";
     using (var bot = new IRCBot(conf))
     {
         conf.joined = false;
         bot.Connect();
         bot.IRCWork();
     }
     Console.WriteLine("Bot quit/crashed");
     Console.ReadLine();
 }