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

Export promisified methods #92

Closed Naktibalda closed 7 years ago

Naktibalda commented 7 years ago

This middleware uses bluebird promisify functionality internally, but if I want to use promises in my bot code, I have to promisify it again.

Would it be OK to export promisified methods?

germanattanasio commented 7 years ago

I think we can support callbacks and promises with the same function. See https://loige.co/to-promise-or-to-callback-that-is-the-question/