Esempio n. 1
0
 public RingNotifyOptions(ICamera camera, IChatbot chatbot, string chatId, int notifyPin)
 {
     Camera    = camera;
     Chatbot   = chatbot;
     ChatId    = chatId;
     NotifyPin = notifyPin;
 }
Esempio n. 2
0
        private void RadChatbot_CheckedChanged(object sender, EventArgs e)
        {
            RadioButton rb = (RadioButton)sender;

            if (!rb.Checked)
            {
                return;
            }

            // Set Engine ChatBot
            IChatbot chatbot = Program.RuntimeEngine.AI.LanguageModel.ChatbotManager[rb.Name];

            Program.RuntimeEngine.AI.LanguageModel.ChatbotManager.Current = chatbot;

            // Speak the Default Greeting
            SendResponse(chatbot.Greeting);

            // Disable the Default
            this.radDefault.Enabled = false;

            // Focus Input
            txtInput.Focus();
        }