Terminal automatically running a python script once Mac is turned on

I’m trying to host a discord bot to a small server of mine, and unfortunately server hosting does not seem to be a viable option at this moment.

I’d like to have the bot running 24/7, however unfortunately my Mac self reboots fairly frequently and I don’t feel confident that I’ll remember to restart the script manually each time.

Is there any way to set it up so that my Mac automatically runs the python script through terminal once either I log back in or the Mac turns back on? Any help is greatly appreciated, thank you.

Leave a Comment