Charca / bootbot

Facebook Messenger Bot Framework for Node.js
MIT License
974 stars 253 forks source link

Keep the conversation after restart app #147

Open lehainam-dev opened 6 years ago

lehainam-dev commented 6 years ago

Hi everyone,

I wonder if somehow the conversation is kept after the app restarts. Currently, if I'm in the middle of a conversation, then the app restarts by some reasons (new features push to master, app crash...), the new messages will be listen on message event, not in the conversation handler.

I know that it is not the issue of the package. I just wonder if there's a way to keep current conversation even after app is restarted.

Any advises or suggestions is appreciated.

FnTm commented 5 years ago

I came here to get an answer to the same question.

Unless I'm missing something huge - there is no way to keep conversations after restarting. Conversations are basically just stored in an in-memory object, and not persisted to any other medium. I will look into this and hopefully come up with a PR to add conversation persistance, but I can't promise anything, as JS isn't one of my stronger languages yet :)