I'm developing a chabot which manually sends an information to users at specific time. I use node.js, MongoDB, heroku and node-schedule for scheduling. node-schedule seems to catch the time well, but the problem is whenever I update(commit) my chatbot, as you know, node-shedule is reset. Therefore, it doesn't work well. How should I make a more sustainable subscription feature then?
(My current method: user subscribes --> psid is stored in mongodb. If the user subscribed, chatbot sends a message to user at specific time by using node-schedule. But when I commit, node-schedule is turned off. )
via brain_team
No comments:
Post a Comment