Exemplo n.º 1
0
		static void Main() {
			Application.SetCompatibleTextRenderingDefault(false);
			Application.EnableVisualStyles();

			BotForm = new Bot();
            Application.Run(BotForm);
        }
Exemplo n.º 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();
 }
Exemplo n.º 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;
     }
 }