Skip to content

Commit

Permalink
Update leadboard_time.py
Browse files Browse the repository at this point in the history
Update 2023
  • Loading branch information
ArdyZ authored Dec 1, 2023
1 parent 9292b82 commit c912d3d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions leadboard_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

# Advent Of Code request that you don't poll their API more often than once every 15 minutes
POLL_MINS = 15
YEAR = 2023

# Discord messages are limited to 2000 characters. This also includes space for 6 '`' characters for a code block
MAX_MESSAGE_LEN = 2000 - 6
Expand Down Expand Up @@ -142,15 +143,13 @@ async def on_ready():

@bot.command(name='daily_leader_board')
async def daily_leader_board(context, num_players: int = 20):
print("I feel sleepy: ", str((datetime.datetime(2022,12,3,20,00,00) - datetime.datetime.now()).total_seconds()))
time.sleep((datetime.datetime(2022,12,3,20,00,00) - datetime.datetime.now()).total_seconds())
day = 4
day = 2
while True:
await leader_board(context, num_players)
await keen(context)

print("I feel sleepy: ", str((datetime.datetime(2022,12,day,20,00,00) - datetime.datetime.now()).total_seconds()))
time.sleep((datetime.datetime(2022,12,day,20,00,00) - datetime.datetime.now()).total_seconds())
print("I feel sleepy: ", str((datetime.datetime(YEAR,12,day,20,00,00) - datetime.datetime.now()).total_seconds()))
time.sleep((datetime.datetime(YEAR,12,day,20,00,00) - datetime.datetime.now()).total_seconds())
day += 1

bot.run(TOKEN)

0 comments on commit c912d3d

Please sign in to comment.