static void Main() {
			Application.SetCompatibleTextRenderingDefault(false);
			Application.EnableVisualStyles();

			BotForm = new Bot();
            Application.Run(BotForm);
        }
Exemple #2
0
 public Bot(StreamReader input, StreamWriter output)
 {
     this.input = input as TextReader;
     this.output = output as TextWriter;
     StreamList = new List<string>();
     ViewerList = new Dictionary<string, int>();
     rnd = new Random();
     _instance = this;
     StartListening();
 }
Exemple #3
0
 static void Main(string[] args)
 {
     try {
         Bot bot = new Bot();
         bot.Run();
     } catch (Exception e) {
         Console.WriteLine(e.Message);
         Console.WriteLine("<press any key to continue>");
         File.WriteAllText("error.log", e.ToString());
         Console.ReadKey();
         return;
     }
 }