How to make this script loop every hour

后端 未结 3 797
暖寄归人
暖寄归人 2021-01-28 12:11

I\'m creating a bot that posts every 60 minutes covid numbers, I have it finished but idk how to make it repeat. Any idea? It\'s a little project that I have in mind and it\'s t

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-28 12:57

    You might want to use a scheduler, there is already a built-in one in Python (sched), read more about it here: https://docs.python.org/3/library/sched.html

提交回复
热议问题