try setting to bot for 300minutes, then break for a massive time and leave the option to shut script down on break, so something like 300mins botting, then 600+ minutes break, this way u will be able to bot the 300minutes then in the next 600minutes(10hours) you have time to turn it off urself, cant guatintee this will work but worth a shot maybe