ringcentral / ringcentral-chatbot-js

RingCentral Chatbot Framework for JavaScript
MIT License
10 stars 7 forks source link

Add Cli function #21

Open zxdong262 opened 5 years ago

zxdong262 commented 5 years ago

Similar to https://github.com/zxdong262/ringcentral-engage-chatbot-js/blob/master/bin/rcec.js So we can simply run npx ringcentral-chatbot bot.js instead of write a server.js

tylerlong commented 5 years ago

I don't get the point here. I tend to keep simple things simple and avoid introduce new concepts / utilities.

Why is npx ringcentral-chatbot bot.js better than node bot-server.js ?

zxdong262 commented 5 years ago

bot.js is pure bot logic, user do not need write/think about server part by default, so it is simpler for user getting started and still support writing a custom bot-server.js if needed.