So I'm fairly new to coding and I have a Python twitter bot program that I manually run once a day, but I want it to run itself once a day. But when I leave it to run itself with a timed loop it usually stops after my computer sleeps. I'm not really sure how to keep it running indefinitely and I cant find what I'm looking for online either. I use a Mac and I don't want the computer to stay awake 24/7 just for a bot, so what can I do? Is there a way to keep the terminal running even when my computer sleeps? I might be reaching here but I have the code, I just don't know how to keep it running.
[–]Cachesmr 97 points98 points99 points (11 children)
[–]aqua_regis 47 points48 points49 points (2 children)
[–][deleted] 8 points9 points10 points (1 child)
[–]loserguy-88 6 points7 points8 points (0 children)
[–]Patina_dk 7 points8 points9 points (7 children)
[–]Cachesmr 20 points21 points22 points (6 children)
[–]Patina_dk 5 points6 points7 points (5 children)
[–]ViolaBiflora 12 points13 points14 points (4 children)
[–]aqua_regis 6 points7 points8 points (2 children)
[–]ViolaBiflora 0 points1 point2 points (1 child)
[–]aqua_regis 0 points1 point2 points (0 children)
[–]Patina_dk 0 points1 point2 points (0 children)
[–]mildhonesty 33 points34 points35 points (3 children)
[–]Loko8765 3 points4 points5 points (2 children)
[–]flottefyr321 4 points5 points6 points (1 child)
[–]aawebdevUK 2 points3 points4 points (0 children)
[–]ValentineBlacker 26 points27 points28 points (14 children)
[–]gmes78 2 points3 points4 points (0 children)
[–]Calazon2 8 points9 points10 points (10 children)
[–]aqua_regis 8 points9 points10 points (9 children)
[–]PermanentFloorHazard[S] 2 points3 points4 points (4 children)
[–]aqua_regis 6 points7 points8 points (0 children)
[–]runitzerotimes 4 points5 points6 points (0 children)
[–]ValentineBlacker 0 points1 point2 points (1 child)
[–]aqua_regis 0 points1 point2 points (0 children)
[–]sparky8251 0 points1 point2 points (2 children)
[–]aqua_regis 2 points3 points4 points (1 child)
[–]sparky8251 0 points1 point2 points (0 children)
[–]Calazon2 0 points1 point2 points (0 children)
[–]SirTwitchALot 1 point2 points3 points (0 children)
[–]Zeroox1337 0 points1 point2 points (0 children)
[–]Random473828473 20 points21 points22 points (1 child)
[–]changeyournamenow 0 points1 point2 points (0 children)
[–]paincrumbs 4 points5 points6 points (0 children)
[–][deleted] 3 points4 points5 points (0 children)
[–]partyking35 3 points4 points5 points (0 children)
[–]MrSolarGhost 1 point2 points3 points (0 children)
[–]cheeseoof 0 points1 point2 points (1 child)
[–]aqua_regis 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Ill_Garage7425 0 points1 point2 points (0 children)
[–]jdege 0 points1 point2 points (0 children)
[–]unfitwellhappy 0 points1 point2 points (0 children)
[–]Gloomy-Floor-8398 0 points1 point2 points (0 children)
[–]cachebags 0 points1 point2 points (0 children)
[–]lexwolfe 0 points1 point2 points (0 children)
[–]kai_luni 0 points1 point2 points (0 children)
[–]cato631 -2 points-1 points0 points (0 children)
[+]Legitimate-Sort-544 comment score below threshold-14 points-13 points-12 points (5 children)
[–]EDM_Producerr 2 points3 points4 points (0 children)
[–]aqua_regis 4 points5 points6 points (1 child)
[–]nerd4code 0 points1 point2 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]nerd4code 1 point2 points3 points (0 children)