I'm using discord.py to create a discord bot, and I need to execute certain actions every day at a specific time. I saw this answer: How to make a loop in discord.py rewrite? and I've been using it so far.
The problem started when I hosted my bot on the heroku free plan. The server on Heroku resets at least once a day, which messes up the timer as shown in that post.
I also saw the schedule library. The problem with this is that it seems like it uses an infinite loop. Wouldn't that prevent me from running anything else during the 24 hours? The bot needs to be able to respond to commands at all times, in addition to sending out the message every 24 hours.
How can I execute an action every day at a specific time even if the server resets? Thank you in advance!