Yoctol / bottender

⚡️ A framework for building conversational user interfaces.
https://bottender.js.org
MIT License
4.22k stars 335 forks source link

refactor: use bottender function in bottender start instead of initializeServer #761

Closed chentsulin closed 4 years ago

chentsulin commented 4 years ago

initializeServer is an undocumented helper function I introduced in early v1 (1.0-alpha). After we released custom server support, we supposed to rewrite the whole initializeServer with the bottender function. However, initializeServer is a synchronous function can't be written to asynchronous function without break the return value.

So, I switched the implementation under bottender start/dev to the bottender function. and maybe rewrite initializeServer in v2.