Skip to content

Commit

Permalink
aoc forever
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Pro committed Dec 2, 2023
1 parent 66f84b9 commit a361dd4
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions bot/skills/aoc_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,16 @@

logger = logging.getLogger(__name__)

AOC_ENDPOINT = "https://adventofcode.com/2022/leaderboard/private/view/458538.json"
AOC_START_TIME = datetime.fromtimestamp(1669870800)

AOC_ENDPOINT = f"https://adventofcode.com/{datetime.utcnow().year}/leaderboard/private/view/458538.json"
AOC_START_TIME = datetime.utcnow().replace(
year=datetime.utcnow().year,
month=12,
day=1,
hour=5,
minute=0,
second=0,
microsecond=0).timestamp()
AOC_UPDATE_INTERVAL = timedelta(minutes=15)
JOB_AOC_UPDATE = "aoc_update_job"

Expand Down

0 comments on commit a361dd4

Please sign in to comment.