Beispiel #1
0
 static void Main(string[] args)
 {
     bot = new Bot();
     bot.OnRawMessage+=new IrcEventHandler(bot_OnRawMessage);
     bot.ConnectAll();
     new Thread(new ThreadStart(ReadCommand)).Start();
 }
Beispiel #2
0
 protected override void OnStart(string[] args)
 {
     bot = new Bot();
     bot.ConnectAll();
 }
Beispiel #3
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            writer = new System.IO.StringWriter();
            Console.SetOut(writer);

            Application.ApplicationExit += new EventHandler(Application_ApplicationExit);
            FormClosing += new FormClosingEventHandler(frmMain_FormClosing);
            txtLog.TextChanged += new EventHandler(txtLog_TextChanged);
            txtMessage.KeyDown += new KeyEventHandler(txtMessage_KeyDown);

            bot = new Bot();
            bot.OnRawMessage+=new IrcEventHandler(Bot_OnRawMessage);

            bot.ConnectAll();

            thread = new System.Threading.Thread(new System.Threading.ThreadStart(Log));
            thread.Start();
        }