public Prefix Hello(Noun.hello hello, [Optional] comma comma) { // In this case we want to use the same greeting back, i.e. Hello->Hello, Hi->Hi, ... return(new Prefix { Original = hello.Text + ",", OptionalResponsePrefix = hello.Text + "," }); }
public NLPActionResult Hello(Noun.hello hello) { string now = DateTime.Now.ToShortTimeString(); st.Say("Hello to you too, it's now " + now); st.Remember(new SampleMemory(now)); // an example of how you can remember things that you spoke about return(NLPActionResult.None); }