Пример #1
0
 static void Main(string[] args)
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Console.OutputEncoding = Encoding.UTF8;
     Console.Title = "csharp-ircbot: irc.rizon.net";
     Config config = new Config("config.ini");
     Random random = new Random((int)DateTime.Now.Ticks & 0x0000FFFF);
     ircBot rizon = new ircBot(config, random);
     Thread rizonTypper = new Thread(rizon.typper);
     Thread rizonBot = new Thread(rizon.ircWork);
     rizonBot.Start();
     rizonTypper.Start();
 }
Пример #2
0
 public ircBot(Config conf, Random rand)
 {
     config = conf;
     random = rand;
     Connect();
     Timecounter = new TimeCounter();
     Nicklist = new NickList(this);
     parser = new Parser(this);
     if (config.HardCodeTriggers) SetupXDCC();
     if (config.UseUI) SetupUI();
     BLog = new Log(this);
     //BLog.RewriteLog();
     //Console.ReadLine();
 }