예제 #1
0
        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') ;
        }
예제 #2
0
 private static void Main(string[] args)
 {
     DiscoBot myBot = new DiscoBot();
     myBot.bot.Disconnect();
 }