DanH42 / mi1kb0t

A multi-platform chat bot
MIT License
43 stars 17 forks source link

Messenger keeps breaking #13

Open DanH42 opened 8 years ago

DanH42 commented 8 years ago

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.

twof commented 8 years ago

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.

twof commented 8 years ago

https://github.com/twof/mi1kb0t/commit/d9edbdd83da340c5fc26f09b2c8ab869a256625e