pythonanywhere reboots? Discord Bot

Hi guys, Im noticing that my script die's without reason about every 24 hours. my question is just that. do they kill scripts more then 24 hours? - There are no logs or errors when opening the python console it just reboots. so im at a lost here. unless discord is the one disconnecting. Thank you :)

update: added a log system in the script so i find the moment when it fails.. still unsure why tho

It's probably because the console server you're running on restarted. We recommend that you don't use consoles to run something you want to keep running constantly -- it's better to use a scheduled task. This help page explains how to create a scheduled task that will run your script, and will also restart it if it crashes for any reason.

Thanks, that resolved my issue!