What is the best way to schedule a task, scheduler or bots?

I'm making a website, and I need everyday some specific tasks will run automatically at a specific time.What's the best way to do that?