protected void Stop_Clicked(object sender, EventArgs args) { if (botThread != null) { if (bot.On || bot.isRunning) { bot.Stop(); botThread.Join(); botThread = null; } } }
public async static Task forceRun() { Console.WriteLine("Forcing bot to run now."); if (bot.On) { bot.Stop(); } bot.runChecks(); }