We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
// proposed new Bot().train(topic, sentence).addSkill(skill).resolve(....) // current var bot = new Bot(); bot.train(topic, sentence); bot.addSkill(skill); bot.resolve(....);
The text was updated successfully, but these errors were encountered:
Isn't it just enough to add return this; in each method? It will return the original Bot object so that all other methods are still defined.
return this;
Sorry, something went wrong.
@rafaelklaessen you are right. See pull request #17 for updates.
Merge pull request #17 from marekhakala/master
ecfb97d
Bot.js - Support for Chaining Methods #10
Closing as @marekhakala's merge request has been merged.
No branches or pull requests
The text was updated successfully, but these errors were encountered: