Skip to content
This repository was archived by the owner on Dec 29, 2025. It is now read-only.

Commit 9b10468

Browse files
MDaffyduckJiralite
andauthored
feat: 2025 Santa (#11)
Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
1 parent 74f2639 commit 9b10468

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/main.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,14 @@ async fn notify(client: Http) -> Result<()> {
160160
));
161161
}
162162

163-
if now.year() == 2024
164-
&& now.month() == 12
165-
&& now.weekday() == Weekday::Sun
163+
if now.weekday() == Weekday::Sun
166164
&& now.hour() == 19
167165
&& now.minute() == 50
166+
&& ((now.year() == 2024 && now.month() == 12)
167+
|| ((now.year() == 2025
168+
&& now.month() == 12
169+
&& (now.day() > 1 || (now.day() == 1 && now.hour() >= 11)))
170+
|| (now.year() == 2026 && now.month() == 1 && now.day() < 5)))
168171
{
169172
let santa_timestamp_start = now + Duration::from_secs(600);
170173

0 commit comments

Comments
 (0)