Public IP discord bot - Runs for a minute then stops? Also prints wrong IP address
Hey all. Very new to all this, I put this together from a few tutorials and basic reasoning.
It basically should print my puiblic IP address in a private channel with a few of my friends, as I run a few small servers for minecraft/valheim/astroneer - I don't have a static IP address, so I'd like to be able to have them see my IP when I'm not available to give it to them when it changes (oddly enough, my ISP changes my IP a few times a week on average).
Anyway, this runs for about 60 seconds (set interval to 30 seconds) and then it just stops running, does not display anything in the console. Also, it prints out one of googles IP addresses, not my public IP.
Thanks for any help everyone.