Beispiel #1
0
        static void Main()
        {
            //for (int i = 0; i < 20; i++)
            //{
            //    Console.WriteLine(Generator.GenerateTweet());
            //}
            //Console.ReadKey();
            SetTweetTimer(60);
            SetReplyTimer(5);


            Console.WriteLine("\nPress the Enter key to exit the application...\n");
            Console.WriteLine("The application started at {0:HH:mm:ss.fff}", DateTime.Now);
            string tweet = Generator.GenerateTweet();

            Tweeter.tweeter(tweet);
            GifTweeter.Booty();
            Console.ReadLine();
            aTimer.Stop();
            aTimer.Dispose();
            Console.WriteLine("Terminating the application...");
        }
Beispiel #2
0
 private static void ReplyOnTimedEvent(Object source, ElapsedEventArgs e)
 {
     GifTweeter.Booty();
 }