コード例 #1
0
ファイル: Program.cs プロジェクト: ManselD/C-Basic-Twitch-Bot
		static void Main() {
			Application.SetCompatibleTextRenderingDefault(false);
			Application.EnableVisualStyles();

			BotForm = new Bot();
            Application.Run(BotForm);
        }
コード例 #2
0
ファイル: Bot.cs プロジェクト: C453/Twitch-Bot
 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();
 }
コード例 #3
0
ファイル: Program.cs プロジェクト: ArthurGoodman/QuoteBot
 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;
     }
 }