Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public TwitchBot(TwitchBotWindow linkedWindow)
 {
     this.form = linkedWindow;
     botRunner = new Thread(runBot);
 }