OKKKK I was able to find get some success with this..
:local wgcheckip 10.X.X.X
:local endpointip my.ddns.com
#:log info "wg check-ip $wgcheckip "
:if ([/ping 10.X.X.x interval=1 count=5] =0) do={
:log info "WG down $wgcheckip"
/interface/wireguard/peers/disable [find endpoint-address=my.ddns.com];
:delay 60
/interface/wireguard/peers/enable [find endpoint-address=my.ddns.com];
:log info "WG up again $wgcheckip"
}
But I had to mess with it for a bit.. wow this post* is insanely helpful!!
viewtopic.php?t=182340
I think I entered it right and I have it on a scheduler and it seems to be working..