on
以简单的方式添加一条命令。
普通的command
let artyom = new Artyom();
artyom.on(['Good morning','Good afternoon']).then(function(i){
switch (i) {
case 0:
artyom.say("Good morning, how are you?");
break;
case 1:
artyom.say("Good afternoon, how are you?");
break;
}
});smart command
Last updated
Was this helpful?