From 35dfc880e7677968e9e5894af9c7c5f1cbe2f451 Mon Sep 17 00:00:00 2001 From: Suraj B M Date: Tue, 22 Sep 2026 10:27:28 +0530 Subject: [PATCH] refactor: add age to birthday greeting --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 5bd19cb..01e3040 100644 --- a/index.ts +++ b/index.ts @@ -24,7 +24,7 @@ async function main() { getWeather() ]) - const message = `${isBirthday ? "Happy Birthday" : "Good Morning"}, SilicoFlare! + const message = `${isBirthday ? `Happy Birthday, SilicoFlare! You are now ${dayjs().diff(dayjs("2003-09-23"), "years")} years old.` : "Good Morning, SilicoFlare!"} Today is **${dayjs().format("dddd, DD MMMM YYYY")}**. Hoy es **${dayjs().locale("es").format("dddd, D [de] MMMM [de] YYYY")}**.