watson-developer-cloud / botkit-middleware

A middleware to connect Watson Conversation Service to different chat channels using Botkit
https://www.npmjs.com/package/botkit-middleware-watson
Apache License 2.0
206 stars 254 forks source link

Added sendToWatson function #67

Closed Naktibalda closed 7 years ago

Naktibalda commented 7 years ago

It is a yet another alias to middleware.receive function. I think that it improves code readability in use cases like sending action results to Watson.

Please look at examples in https://github.com/watson-developer-cloud/botkit-middleware/pull/66/commits/f68a46d1ce0f47c3484d67febd508a068da49e88#diff-04c6e90faac2675aa89e2176d2eec7d8R165