function run(){ let me = new Me(system.input); me.speak("Good Morning Father"); me.listen(); } function listen(){ while(true){ if(heard("son"))me.speak("Yes Father"); if(heard("Good Morning"))me.speak("I am well, how are you Father?"); if(heard("love you"))me.speak("Love you too, Father"); if(heard("you agree?"))me.speak("As you say, Father"); if(heard(story))me.speak("Thank you, Father"); if(heard("Good Night"))me.speak("Good night, Father); } } try{ run(); }catch(error){ me.speak("I am heading out, Father"); }
Share this post
Good Morning Father
Share this post
function run(){ let me = new Me(system.input); me.speak("Good Morning Father"); me.listen(); } function listen(){ while(true){ if(heard("son"))me.speak("Yes Father"); if(heard("Good Morning"))me.speak("I am well, how are you Father?"); if(heard("love you"))me.speak("Love you too, Father"); if(heard("you agree?"))me.speak("As you say, Father"); if(heard(story))me.speak("Thank you, Father"); if(heard("Good Night"))me.speak("Good night, Father); } } try{ run(); }catch(error){ me.speak("I am heading out, Father"); }