예제 #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);
        }
예제 #2
0
 public TwitchBot(TwitchBotWindow linkedWindow)
 {
     this.form = linkedWindow;
     botRunner = new Thread(runBot);
 }