You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Note, since we're calling an async method (mitsuku.send) and we're using a sync method (readlineSync), we have to handle our main loop in an async fashion.
//
function main() {
var text = readlineSync.question('> ');
if (text != 'quit') {
// Respond to input.
chatskills.respond(text, function(response) {
console.log(response);
main();
});
}
}
// Start the 'chatbot' skill immediately, to fire up the chatbot.
chatskills.respond('chatskills, ask chatbot to start', function(response) {