private void MainWindow_Load(object sender, EventArgs e) { bot.OnDisconnect += Bot_OnDisconnect; bot.OnMessageRecieve += Bot_OnMessageRecieve; if (!bot.Start()) { MessageBox.Show("Failed to start bot!"); } }