現在日時を取得する方法をご紹介します。
実装方法
現在日時は<date>
で取得します。
ポイント
xAIML
1 2 3 4 5 6 |
<category> <pattern>現在日時を教えて</pattern> <template> <date format="yyyy年MM月dd日 HH時mm分" />です。 </template> </category> |
実行結果
1 2 |
user > 現在日時を教えて bot > 2019年02月04日 15時21分です。 |