feat: uh hahaha you'll see

This commit is contained in:
tresabhi committed 2025-03-31 16:54:32 -05:00
1 parent d5d171bea6
commit 9538a03afb
4 files changed
+102 -124

No files matched your search

+15 -4
View File
@@ -1,4 +1,15 @@
const now = new Date();
export const isFunny =
(now.getMonth() === 3 && now.getDate() === 1) ||
import.meta.env.DEBUG_FUNNY === 'true';
const FUNNY_DATES: [number, number][] = [
// two days for april fools
[4, 1],
[4, 2],
];
export function isFunny() {
const now = new Date();
return (
FUNNY_DATES.some(
([month, day]) => now.getMonth() === month - 1 && now.getDate() === day,
) || import.meta.env.DEBUG_FUNNY === 'true'
);
}