mi1kb0t
mi1kb0t copied to clipboard
Messenger keeps breaking
When the bot has been connected to Mesenger for an extended period, it eventually loses the ability to respond to messages, with reply() calls failing silently. Incoming messages are still processed. This is a bug in the facebook-chat-api library, but can probably be worked around on this end by quickly dis/reconnecting nightly.
https://github.com/ncb000gt/node-cron I think this will do the job. I'm thinking logging out then back in will fix the problem.
https://github.com/twof/mi1kb0t/commit/d9edbdd83da340c5fc26f09b2c8ab869a256625e