How to make VPN auto reconnect to other server?

Can anybody share something about how to automate servers rotation by time or/and if one server is unavailable?

Not possible by default, need to be scripted manually.

Found this person. He created rotation script. Will it work?

Not sure. Pretty dirty script which will rely on the latest WG handshake. Not even sure if you are able to detect down times by this all the time.

Since WG is connection-less it doesn’t have this „connection lost“ status you would need to know that it is down right now.