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

I’m not understanding what the issue is. Can you better describe your situation? Am I understanding correctly that you have a web component and a chat connection? You said you understand how to use refresh tokens and your question is about running forever without having to manually add a new token. Where is the issue?

I recommend checking the token’s expiration before reconnecting and refreshing it if it has expired.