botgram / shell-bot

:robot: Telegram bot that executes commands and sends the live output
GNU General Public License v3.0
789 stars 494 forks source link

Keepalive #55

Open retrojon opened 2 years ago

retrojon commented 2 years ago

Hi there,

After running node server for several hours I find that the connection stalls, e.g. possibly that my ISP IP has renewed. How can shell-bot be made to be robust, maybe every 15 minutes checking for connection to telegram then if no response it can reload the node service.

Many thanks

dimasyudhatech commented 2 years ago

How about this https://www.npmjs.com/package/pm2?

DangeL187 commented 1 month ago

You could write your own service using python, it's not that hard btw