launch bot while (1) if [ bot not connected, alive or whatever] restart, reconnect or whatever... end while