RocketChat / hubot-natural

Natural Language Processing Chatbot for RocketChat
https://open.rocket.chat/channel/hubot-natural
MIT License
144 stars 44 forks source link

Refactor asynchronous calls in the code to use async/await #50

Open arthurTemporim opened 6 years ago

arthurTemporim commented 6 years ago

[WIP]

This PR is about issue #47 .

To run hubot in docker I needed to uncomment mongo-init-replica in docker-compose.yml, tell me if it's wrong to do it.

In security.js the solution was simple, but in respond.js I need to create a new method, that I called getResult() to simplify the code.

I just ran manual tests.