LoginSignup
3
1

More than 5 years have passed since last update.

this.emit(":tell", msg)をやめた

Posted at

最近this.emit(":tell", msg)って書き方をやめることにしたから、自分用のメモ。

なぜやめた

this.emit(":アクション名", msg);の形だと、AudioPlayがやりにくい。
よって、もっと柔軟なことができるやり方に統一する事にした。

:tellに相当するもの

this.emit(':tell', msg); 

thi.response.speak(msg);
this.emit(':responseReady');

:ask相当するもの

this.emit(":ask", msg, repronmt);

this.response.speak(msg).linsten(repronmt);
this.emit(":responseReady");

参考

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1