How to automate the checking and restart of bot?

Top