コード例 #1
0
        /// <summary>
        /// Main entry point
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            Console.Title           = "VancouFur Communications Bot";
            Console.CancelKeyPress += OnCancelKeyPress;

            try
            {
                // Setup the bot
                CommunicationBot.Create();

                // MAIN BLOCKING UPDATE
                CommunicationBot.Run();
            }
            catch (Exception ex)
            {
                Console.WriteLine("Error running the communications bot: " + ex.ToString());
            }

            // Cleanup the bot, if it was created
            CommunicationBot.Destroy();
        }