Beispiel #1
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            bot.Connect();

            Console.ReadLine();

            bot.Disconnect();
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            TwitchChatBot bot = new TwitchChatBot();

            bot.Connect();
            Console.ReadLine();
            bot.Disconnect();
        }
Beispiel #3
0
        static void Main(string[] args)
        {
            TwitchChatBot bot = new TwitchChatBot();

            try
            {
                bot.Connect();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }


            do
            {
                String input = Console.ReadLine().ToLower();

                String argument = input.Substring(input.IndexOf(' ') + 1);

                String command = input.Substring(0, input.IndexOf(' '));

                switch (command)
                {
                case "volume":
                    bot.setVolume(Int32.Parse(argument));
                    break;

                case "rate":
                    bot.setRate(Int32.Parse(argument));
                    break;

                default:
                    break;
                }
            } while (true);
        }