static void Main() { //Application.EnableVisualStyles(); //Application.SetCompatibleTextRenderingDefault(false); // Create the Bot UI TwitchBotWindow window = new TwitchBotWindow(); // Create the Main Logic Thread for the Twitch Bot and start it TwitchBot twitchBot = new TwitchBot(window); twitchBot.start(); // Activate window UI processing for the Bot UI Application.Run(window); }
public TwitchBot(TwitchBotWindow linkedWindow) { this.form = linkedWindow; botRunner = new Thread(runBot); }