title: Discord.py Bot run function at specific time every day
body: <p>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: <a href="https://stackoverflow.com/questions/54495679/how-to-make-a-loop-in-discord-py-rewrite/54501491#54501491">How to make a loop in discord.py rewrite?</a> and I've been using it so far.</p>
  <p>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.</p>
  <p>I also saw the <a href="https://github.com/dbader/schedule" rel="noreferrer">schedule</a> 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.</p>
  <p>How can I execute an action every day at a specific time even if the server resets? Thank you in advance!</p>