Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/util/advent-scheduler.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { promises as fs } from 'node:fs';
import { ChannelType, type Client } from 'discord.js';
import * as cron from 'node-cron';
import { promises as fs } from 'node:fs';
import { config } from '../env.js';

const TRACKER_FILE = config.adventOfCodeTrackerPath;
Expand Down Expand Up @@ -92,7 +92,7 @@ async function checkAndCreateTodaysPost(client: Client, channelId: string): Prom
return;
}

if (day < 1 || day > 25) {
if (day < 1 || day > 12) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd personally extract these to something like START_DAY and END_DAY

return;
}

Expand Down