T
TermuxITron Legends

How to restart python scripts automatically/werid python bug

Hello! I have a android 8.1 phone that I'm using termux on I have turned of all android battery optimization features and it is working. Issue: I have a discord.py bot that I'm running. The problem is the script "freezes for some reason and the bot goes offline" while I have no errors in my python files/no connection errors at all. I'm not sure how I should tackle this at all, I was thinking of just restarting the bot each hour which I have no idea how to do via sh