Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow hooks for listening and responding to un-resolvable skills #2

Closed
manthanhd opened this issue Oct 19, 2016 · 2 comments
Closed

Comments

@manthanhd
Copy link
Owner

When a skill cannot be resolved, it throws an error. This shouldn't always be the case. It should allow a subscriber to intercept the unresolved skill call and act on it with a response. The listener should also be able to respond with a message and direct botjs to continue onto the next skill resolution.

@manthanhd
Copy link
Owner Author

manthanhd commented Oct 23, 2016

Implementation might look like this:

var skill = new Skill(undefined, skillFn);

bot.addSkill(skill);

The resolver should map this to 'undefined' topic which will come up when classifier is trying to resolve topic. Also, for those whose skills cannot be found, the resolver will reduce down to this skill.

@manthanhd
Copy link
Owner Author

Closed by #9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant