How to run twitchio bot forever without manually adding the new token

You could just have your backend make the requests to the Refresh Token endpoint, and then store the new access and refresh token, such as in a database, a file, whatever is suitable for your use case.

Then whenever it needs to connect, such as after a disconnect or when the app first starts up, it just gets the token from where you’ve stored them.