Example #1
0
 static void Main(string[] args)
 {
     bot = new HelloBot();
     bot.OnErrorOccured += BotOnErrorOccured;
     Task.Run(delegate
     {
         try
         {
             skype.MessageStatus += OnMessageReceived;
             skype.Attach(5, true);
             chatSyncer = new SkypeChatSyncer();
             chatSyncer.OnSendMessageRequired += ChatSyncerOnOnSendMessageRequired;
             Console.WriteLine("skype attached");
         }
         catch (Exception ex)
         {
             Console.WriteLine("top lvl exception : " + ex.ToString());
         }
         while (true)
         {
             Thread.Sleep(1000);
         }
     });
     
     while (true)
     {
         Thread.Sleep(1000);
     }
 }
Example #2
0
        static void Main(string[] args)
        {

            HelloBot bot = new HelloBot();
            //bot.HandleMessage("!Скажи риновский", s =>
            //{
            //    Console.WriteLine(s);
            //},null);
            

            //List<string> s2 = new List<string>() { "Сиськи" };

            //foreach (var v in s2)
            //{
            //    new Quote().HandleMessage(v, null, s =>
            //        Console.WriteLine(s));
            //}
            Console.ReadLine();
        }