Пример #1
0
        /// <summary>
        /// The interactive HipBot command line.
        /// </summary>
        public override void Default()
        {
            In.OnInput += In_OnInput;

            In.DynamicPrompt = () => { return(string.Format("{0:HH:mm:ss}>", DateTime.Now)); };

            Out.WriteLine("|cyan|HipBot.|gray|");

            In.Listen();

            if (CredentialService.CredentialsSet())
            {
                var credentials = CredentialService.GetCredentials();

                HipChatService.Login(credentials);
            }

            while (true)
            {
                Thread.Sleep(1000);
            }
        }