edwin0259 / bot-commands

User suggested commands for maestroBot
MIT License
2 stars 3 forks source link

Self reviving bot #12

Closed edwin0259 closed 6 years ago

edwin0259 commented 6 years ago

Bot initialization and monitoring should be moved inside a shell script. This script will start the bot and then monitor it for failure. This could be a simple ping that can determine if the bot is in limbo or dead. If the bot is ded, restart it and log out error.

For some fails the bot should stay dead, shit might become more complicated if it continues to run.

edwin0259 commented 6 years ago

Bot should not be self-reviving on complete exit. Still not sure how to deal with limbo reviving. This is a good start though.

edwin0259 commented 6 years ago

Closing this issue, looks like self reviving is working, also added !refresh command if the reviving spawns multiple bots at the same time. Will want to look at that eventually.