import express from "express"; import cron from "node-cron"; import twilio from "twilio"; /* ========================= πŸ”§ CHANGE ONLY THESE ========================= */ const accountSid = "YOUR_TWILIO_ACCOUNT_SID"; const authToken = "YOUR_TWILIO_AUTH_TOKEN"; const fromNumber = "+46 0706983702"; // Twilio number const toNumber = "+46 70-632 70 99"; // Her number const PORT = 3000; /* ========================= */ const client = twilio(accountSid, authToken); const app = express(); /* 🌐 BIRTHDAY PAGE */ app.get("/", (req, res) => { res.send(` Happy Birthday ❀️

πŸŽ‰ Happy Birthday My Love ❀️

You don’t have to be okay today.
You don’t have to smile if it’s hard.

I’m here for you β€” always.


`); }); /* ⏰ MIDNIGHT SMS */ cron.schedule("0 0 * * *", async () => { try { await client.messages.create({ body: `Hey my love ❀️ I know things have been heavy lately, but today is about YOU. I made something just for you πŸŽ‚βœ¨ Open this πŸ’– http://YOUR_IP_OR_DOMAIN:${PORT}`, from: fromNumber, to: toNumber }); console.log("πŸŽ‰ Birthday SMS sent"); } catch (e) { console.error("❌ SMS error", e); } }); /* πŸš€ START SERVER */ app.listen(PORT, () => { console.log("βœ… Birthday site running on port", PORT); });