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

Apologies but im very new to twitchio could u give me an example of how you do this? How can I write the code for it to connect and use a new access token whenever there is a disconnection?