I have been hosting a discord bot on my raspberry pi for half a year now, but after the new discord update my bot seems to go offline within two hours of closing out my PuTTy shell and vnc viewer which I use to access my raspberry pi. After testing different things when I try and restart the bot via vnc I get a Temporary Failure in name resolution
which I learned only goes away if I rewrite my token in the script using PuTTY however this put me in a loop because 2 hours after closing out of the PuTTy shell the bot goes offline again and I have to repeat the process. I am still relatively new to all of this and would really like any kind of help.
edit: I just found out that I don't even need a new token to get rid of the error all I need to do is run it in PuTTy and close it immedietly when I do the same thing through the vnc viewer nothing happens and the error persists.