static void Main(string[] args) { myBot = new DiscoBot(); // Create a 30 min timer timer = new System.Timers.Timer(); // Hook up the Elapsed event for the timer. timer.Elapsed += new System.Timers.ElapsedEventHandler(OnTimedEvent); timer.Interval = 5000; timer.Enabled = true; myBot.startBot(); //Console.WriteLine("Press \'q\' to quit the sample."); //while (Console.Read() != 'q') ; }
private static void Main(string[] args) { DiscoBot myBot = new DiscoBot(); myBot.bot.Disconnect(); }