Skip to content

Commit

Permalink
move the covid post closer to 9pm
Browse files Browse the repository at this point in the history
  • Loading branch information
efitz11 committed Jul 21, 2020
1 parent 7302727 commit 603e48e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discordtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -851,8 +851,8 @@ async def check_covid_numbers():
wait_time = 60*15
# send update right before midnight GMT
now_time = datetime.utcnow().time()
if now_time >= time(23,44) and now_time <= time(23,59,59) and not covid_sent_today:
if now_time >= time(23,58,30) and not covid_sent_today:
if now_time >= time(0,44) and now_time <= time(0,59,59) and not covid_sent_today:
if now_time >= time(0,58,30) and not covid_sent_today:
await bot.send_message(corona_channel, covid.get_usa())
covid_sent_today = True
await asyncio.sleep(wait_time)
Expand Down

0 comments on commit 603e48e

Please sign in to comment.