Closed Calvin-Lin closed 6 years ago
It's not convenient that every action function should have name property. https://github.com/Yoctol/bottender-recognizer/blob/master/src/index.js#L66
How about let resolver return action function and action name separately? Like this
const {name, action} = resolver(context.state, intent);
or may be we can implement something like this: https://github.com/acdlite/recompose/blob/master/docs/API.md#setdisplayname
https://github.com/Yoctol/bottender-compose/pull/57
It's not convenient that every action function should have name property. https://github.com/Yoctol/bottender-recognizer/blob/master/src/index.js#L66
How about let resolver return action function and action name separately? Like this