diff --git a/utils/randomText.ts b/utils/randomText.ts index 7e25c45f..b5c3442a 100644 --- a/utils/randomText.ts +++ b/utils/randomText.ts @@ -1,95 +1,189 @@ -const randomTextFromArray = (texts: string[]) => { - return texts[Math.floor(Math.random() * texts.length)]; +const randomTextFromArray = (texts: string[]): string => { + return texts[Math.floor(Math.random() * texts.length)]; }; -const randomText = (name: string) => { - const morningOnlyTexts = [ - `Good morning, ${name} โ˜€๏ธ`, - `Top of the morning to you, ${name}! ๐Ÿฅ`, - `Rise and shine, ${name} ๐ŸŒ…`, - `Hope you slept well, ${name} ๐Ÿ˜ด`, - `Morning, ${name}. Ready to take on the day? ๐Ÿ’ช`, - `Hey ${name}, coffee's brewing! โ˜•๏ธ`, - `Rise and grind, ${name} ๐Ÿ‹๏ธโ€โ™‚๏ธ`, - `New day, new opportunities, ${name} ๐ŸŒ„`, - `The early bird gets the worm, ${name} ๐Ÿฆ`, - `Boot sequence complete, ${name}. Letโ€™s launch ๐Ÿš€`, - `Up and at 'em, ${name}! ๐Ÿ“`, - `Letโ€™s make today awesome, ${name} ๐Ÿ’ซ`, - `First light and first coffee, right ${name}? โ˜•๏ธ`, - `Itโ€™s go time, ${name} ๐Ÿ”ฅ`, - `Sunโ€™s out, ambitionโ€™s up, ${name} ๐Ÿ˜Ž`, - `Time to shine, ${name} โœจ`, - `New day, new tasks โ€” letโ€™s crush them, ${name} โœ…`, - `Hello sunshine! ${name}, youโ€™re glowing today โ˜€๏ธ`, - `Mission log: ${name} is online and operational ๐Ÿ›ฐ๏ธ`, - `Don't just wake up, show up โ€” letโ€™s go ${name} ๐Ÿ’ผ`, - ]; +const randomText = (name: string): string => { + const morningOnlyTexts = [ + `Good morning, ${name} โ˜€๏ธ`, + `Top of the morning to you, ${name}! ๐Ÿฅ`, + `Rise and shine, ${name} ๐ŸŒ…`, + `Hope you slept well, ${name} ๐Ÿ˜ด`, + `Morning, ${name}. Ready to take on the day? ๐Ÿ’ช`, + `Hey ${name}, coffee's brewing! โ˜•๏ธ`, + `Rise and grind, ${name} ๐Ÿ‹๏ธโ€โ™‚๏ธ`, + `New day, new opportunities, ${name} ๐ŸŒ„`, + `The early bird gets the worm, ${name} ๐Ÿฆ`, + `Boot sequence complete, ${name}. Letโ€™s launch ๐Ÿš€`, + `Up and at 'em, ${name}! ๐Ÿ“`, + `Letโ€™s make today awesome, ${name} ๐Ÿ’ซ`, + `First light and first coffee, right ${name}? โ˜•๏ธ`, + `Itโ€™s go time, ${name} ๐Ÿ”ฅ`, + `Sunโ€™s out, ambitionโ€™s up, ${name} ๐Ÿ˜Ž`, + `Time to shine, ${name} โœจ`, + `New day, new tasks โ€” letโ€™s crush them, ${name} โœ…`, + `Hello sunshine! ${name}, youโ€™re glowing today โ˜€๏ธ`, + `Mission log: ${name} is online and operational ๐Ÿ›ฐ๏ธ`, + `Don't just wake up, show up โ€” letโ€™s go ${name} ๐Ÿ’ผ`, + `System check: ${name} is 100% charged โšก๏ธ`, + `Fuel up and fly high today, ${name} โœˆ๏ธ`, + `The world is waiting for you, ${name} ๐ŸŒ`, + `Morning vibes are elite today, right ${name}? ๐Ÿ’Ž`, + `Ready to make some waves, ${name}? ๐ŸŒŠ`, + `Fresh start, fresh goals, ${name} ๐Ÿƒ`, + `Sending high-productivity signals your way, ${name} ๐Ÿ“ก`, + `Make it count today, ${name} ๐ŸŽฏ`, + `Good morning, Captain ${name}. Engines are idling ๐ŸŽ๏ธ`, + `Early start? Thatโ€™s the spirit, ${name} ๐Ÿ†`, + `Morning, ${name}! Let's turn caffeine into code โ˜•๏ธ๐Ÿ’ป`, + `Dawn patrol is active. Welcome back, ${name} ๐Ÿฆ…`, + `The horizon looks promising today, ${name} ๐Ÿ”ญ`, + `A brand new chapter starts now, ${name} ๐Ÿ“–`, + `Let's get those wins early, ${name} ๐Ÿ…`, + `The solar panels are out and soaking it up, ${name} ๐Ÿ”‹`, + `Morning, ${name}! Your potential is infinite โ™พ๏ธ`, + `Sunlight looks good on your workspace, ${name} ๐Ÿชด`, + `Ready for lift-off, ${name}? ๐Ÿ›ซ`, + `Go get 'em, tiger! ${name} ๐Ÿฏ`, + `Another chance to be great, ${name} ๐ŸŒŸ`, + `The morning air is crisp, let's work, ${name} โ„๏ธ`, + `Eyes on the prize today, ${name} ๐Ÿ‘๏ธโ€๐Ÿ—จ๏ธ`, + `A quick stretch and then we go, ${name} ๐Ÿง˜โ€โ™‚๏ธ`, + `Morning, ${name}! Stay focused and stay awesome ๐ŸงŠ`, + ]; - const afternoonOnlyTexts = [ - `Good afternoon, ${name} ๐ŸŒž`, - `Hope your day is going well, ${name} ๐Ÿ˜Š`, - `Hey ${name}, howโ€™s your day so far? ๐Ÿ•‘`, - `You're halfway through, ${name}! ๐Ÿงญ`, - `Keep up the great work, ${name} ๐Ÿ‘`, - `Hello there, ${name} ๐Ÿ‘‹`, - `A productive afternoon to you, ${name} ๐Ÿ› ๏ธ`, - `Letโ€™s power through the afternoon, ${name} โšก๏ธ`, - `Still going strong, ${name}? ๐Ÿ”‹`, - `Orbit stabilizingโ€ฆ productivity at peak, ${name} ๐ŸŒ‘`, - `Need a snack break, ${name}? ๐ŸŽ`, - `Still on track, ${name}? You're killing it ๐Ÿงจ`, - `Letโ€™s turn that to-do list into a done list, ${name} โœ…`, - `You've got this, ${name}. One hour at a time โณ`, - `Ping! Just checking in on you, ${name} ๐Ÿ›Ž๏ธ`, - `Think of this message as your mid-day high-five ๐Ÿ–๏ธ`, - `Orbitโ€™s still spinning and so are you, ${name} ๐ŸŒ€`, - `Don't forget to hydrate, ${name} ๐Ÿ’ง`, - `Productivity levels: Rising steadily, Captain ${name} ๐Ÿ“ˆ`, - `Itโ€™s a good day to get stuff done, ${name} ๐Ÿง `, - `Orbit is running smooth. Thanks for supporting our project, ${name} ๐Ÿ™Œ`, - ]; + const afternoonOnlyTexts = [ + `Good afternoon, ${name} ๐ŸŒž`, + `Hope your day is going well, ${name} ๐Ÿ˜Š`, + `Hey ${name}, howโ€™s your day so far? ๐Ÿ•‘`, + `You're halfway through, ${name}! ๐Ÿงญ`, + `Keep up the great work, ${name} ๐Ÿ‘`, + `Hello there, ${name} ๐Ÿ‘‹`, + `A productive afternoon to you, ${name} ๐Ÿ› ๏ธ`, + `Letโ€™s power through the afternoon, ${name} โšก๏ธ`, + `Still going strong, ${name}? ๐Ÿ”‹`, + `Orbit stabilizingโ€ฆ productivity at peak, ${name} ๐ŸŒ‘`, + `Need a snack break, ${name}? ๐ŸŽ`, + `Still on track, ${name}? You're killing it ๐Ÿงจ`, + `Letโ€™s turn that to-do list into a done list, ${name} โœ…`, + `You've got this, ${name}. One hour at a time โณ`, + `Ping! Just checking in on you, ${name} ๐Ÿ›Ž๏ธ`, + `Think of this message as your mid-day high-five ๐Ÿ–๏ธ`, + `Orbitโ€™s still spinning and so are you, ${name} ๐ŸŒ€`, + `Don't forget to hydrate, ${name} ๐Ÿ’ง`, + `Productivity levels: Rising steadily, Captain ${name} ๐Ÿ“ˆ`, + `Itโ€™s a good day to get stuff done, ${name} ๐Ÿง `, + `Orbit is running smooth. Thanks for supporting our project, ${name} ๐Ÿ™Œ`, + `Post-lunch energy check! How we doing, ${name}? ๐Ÿฅ—`, + `The sun is at its peak, and so are you, ${name} ๐Ÿ”`, + `Focus mode engaged. You're doing great, ${name} ๐Ÿง˜`, + `Nearly at the finish line for today, ${name} ๐Ÿ`, + `Checking the sensors... ${name} is crushing it! ๐Ÿš€`, + `Take a deep breath, ${name}. You've got this ๐Ÿ’จ`, + `Afternoon slump? Not for ${name}! ๐Ÿ’ฅ`, + `Your progress today is looking sharp, ${name} ๐Ÿ“ˆ`, + `Stay locked in, ${name}. Almost there ๐Ÿ”’`, + `Afternoon, ${name}! Don't forget to blink ๐Ÿ‘๏ธ`, + `The heavy lifting is mostly done, right ${name}? ๐Ÿ—๏ธ`, + `You're a productivity machine today, ${name} ๐Ÿฆพ`, + `Sun's past the meridian. Keep cruising, ${name} ๐ŸŽ๏ธ`, + `Steady as she goes, Captain ${name} โš“๏ธ`, + `Doing okay, ${name}? Remember to stretch those legs ๐Ÿšถโ€โ™‚๏ธ`, + `Halfway to the weekend vibes, ${name} ๐Ÿน`, + `Efficiency check: ${name} is off the charts ๐Ÿ“Š`, + `Afternoon, ${name}! The finish line is in sight ๐Ÿ`, + `Stay hydrated and stay brilliant, ${name} ๐ŸงŠ`, + `You make this look easy, ${name} ๐Ÿ˜Ž`, + `Keep that momentum rolling, ${name} โšฝ๏ธ`, + `Afternoon, ${name}! How's the view from the top? ๐Ÿ”๏ธ`, + `Almost time to clock out? Keep pushing, ${name} ๐Ÿ•’`, + `Looking good, ${name}. Keep that energy up โšก๏ธ`, + ]; - const nightOnlyTexts = [ - `Good evening, ${name} ๐ŸŒ™`, - `Winding down, ${name}? ๐Ÿ›‹๏ธ`, - `Hope your day went well, ${name} ๐ŸŒ†`, - `Relax, youโ€™ve earned it, ${name} ๐Ÿ˜Œ`, - `Evening vibes, ${name} โœจ`, - `Time to slow down and reflect, ${name} ๐Ÿง˜`, - `The stars are out, ${name} โญ๏ธ`, - `Great job today, ${name} ๐Ÿ™Œ`, - `Sweet dreams in advance, ${name} ๐Ÿ˜ด`, - `Orbit doesnโ€™t sleep โ€” but you should soon, ${name} ๐Ÿ’ค`, - `The night is calm, ${name}. Time to relax ๐ŸŒŒ`, - `Logging off soon, ${name}? Youโ€™ve earned it ๐Ÿ“ด`, - `Recharge mode: Initiated for ${name} ๐Ÿ”‹`, - `Even stars need rest โ€” so do you, ${name} ๐ŸŒŸ`, - `Thanks for showing up today, ${name} ๐Ÿ’™`, - `Night shift or night chill? You decide, ${name} ๐ŸŒƒ`, - `May your dreams be bug-free, ${name} ๐Ÿ›๐Ÿ’ค`, - `Another day complete. Well played, ${name} ๐ŸŽฎ`, - `Captain ${name}, mission complete for today ๐Ÿš€`, - `Sending good energy for tomorrow, ${name} ๐Ÿ”ฎ`, - ]; + const nightOnlyTexts = [ + `Good evening, ${name} ๐ŸŒ™`, + `Winding down, ${name}? ๐Ÿ›‹๏ธ`, + `Hope your day went well, ${name} ๐ŸŒ†`, + `Relax, youโ€™ve earned it, ${name} ๐Ÿ˜Œ`, + `Evening vibes, ${name} โœจ`, + `Time to slow down and reflect, ${name} ๐Ÿง˜`, + `The stars are out, ${name} โญ๏ธ`, + `Great job today, ${name} ๐Ÿ™Œ`, + `Sweet dreams in advance, ${name} ๐Ÿ˜ด`, + `Orbit doesnโ€™t sleep โ€” but you should soon, ${name} ๐Ÿ’ค`, + `The night is calm, ${name}. Time to relax ๐ŸŒŒ`, + `Logging off soon, ${name}? Youโ€™ve earned it ๐Ÿ“ด`, + `Recharge mode: Initiated for ${name} ๐Ÿ”‹`, + `Even stars need rest โ€” so do you, ${name} ๐ŸŒŸ`, + `Thanks for showing up today, ${name} ๐Ÿ’™`, + `Night shift or night chill? You decide, ${name} ๐ŸŒƒ`, + `May your dreams be bug-free, ${name} ๐Ÿ›๐Ÿ’ค`, + `Another day complete. Well played, ${name} ๐ŸŽฎ`, + `Captain ${name}, mission complete for today ๐Ÿš€`, + `Sending good energy for tomorrow, ${name} ๐Ÿ”ฎ`, + `Sunset looks good on you, ${name} ๐ŸŒ‡`, + `Time to trade the screen for some peace, ${name} ๐Ÿ•ฏ๏ธ`, + `Whatever you didn't finish can wait for tomorrow, ${name} ๐Ÿ—“๏ธ`, + `Refining the logs... ${name} had a solid day ๐Ÿ“`, + `Peace and quiet at last, right ${name}? ๐Ÿคซ`, + `End of day report: ${name} was legendary ๐ŸŽ–๏ธ`, + `Cozy up and relax, ${name} ๐Ÿต`, + `The moon is out to watch over your rest, ${name} ๐ŸŽ‘`, + `Hard work deserves a hard rest, ${name} ๐Ÿ›Œ`, + `Sleep well, ${name}. Tomorrow is a fresh slate ๐Ÿ“–`, + `Evening, ${name}. Time to switch to dark mode ๐ŸŒ‘`, + `Rest is just a tactical pause, ${name} โธ๏ธ`, + `Dinner time? Enjoy yourself, ${name} ๐Ÿฒ`, + `Mission accomplished, ${name}. Over and out ๐Ÿ“ป`, + `The city lights are glowing for you, ${name} ๐Ÿ™๏ธ`, + `Downtime is just as important as uptime, ${name} ๐Ÿ› ๏ธ`, + `Great hustle today, ${name}. Proud of you ๐Ÿค`, + `Evening, ${name}. Let your mind wander ๐Ÿ’ญ`, + `You survived 100% of today. Nice work, ${name} ๐Ÿ’ฏ`, + `Clear skies and calm thoughts, ${name} โ˜๏ธ`, + `Final check-in for the day. You good, ${name}? ๐Ÿ‘‹`, + `Time to decompress, ${name}. Put the phone down ๐Ÿ“ต`, + `Evening, ${name}. Your future self thanks you for today ๐Ÿ‘ค`, + `The day is done. Be at peace, ${name} ๐Ÿ•Š๏ธ`, + `Sleepy eyes, ${name}? Catch those Z's soon ๐Ÿฅฑ`, + ]; - const lateNightTexts = [ - `Still awake, ${name}? Respect ๐ŸŒ™`, - `The grind never sleeps โ€” neither do you, huh ${name}? ๐Ÿ˜…`, - `Late-night coding or existential scrolling, ${name}? ๐Ÿ’ป๐Ÿ“ฑ`, - `You, me, and the moon. Letโ€™s vibe, ${name} ๐ŸŒ•`, - `Insomniacs anonymous: Welcome, ${name} ๐Ÿ˜ด๐Ÿ’ค`, - `Hope you're doing okay, ${name}. Remember to rest soon ๐Ÿซถ`, - `Late shift? Stay sharp, ${name}๐Ÿฆ‰`, - `Quiet hours are the best for deep management. Go get โ€™em, ${name}. โŒจ๏ธ`, - ]; + const lateNightTexts = [ + `Still awake, ${name}? Respect ๐ŸŒ™`, + `The grind never sleeps โ€” neither do you, huh ${name}? ๐Ÿ˜…`, + `Late-night coding or existential scrolling, ${name}? ๐Ÿ’ป๐Ÿ“ฑ`, + `You, me, and the moon. Letโ€™s vibe, ${name} ๐ŸŒ•`, + `Insomniacs anonymous: Welcome, ${name} ๐Ÿ˜ด๐Ÿ’ค`, + `Hope you're doing okay, ${name}. Remember to rest soon ๐Ÿซถ`, + `Late shift? Stay sharp, ${name}๐Ÿฆ‰`, + `Quiet hours are the best for deep management. Go get โ€™em, ${name}. โŒจ๏ธ`, + `Is that a second wind I see, ${name}? ๐ŸŒช๏ธ`, + `Burning the midnight oil again, ${name}? ๐Ÿ”ฅ`, + `The quietest hours are the most creative, right ${name}? ๐ŸŽจ`, + `Just you and the terminal, ${name}. Let's get it ๐Ÿ–ฅ๏ธ`, + `Don't forget to blink, ${name}! ๐Ÿ‘๏ธ`, + `The city is sleeping, but ${name} is building ๐Ÿ—๏ธ`, + `Ghost mode activated for ${name} ๐Ÿ‘ป`, + `Almost morning... or just very late night, ${name}? ๐Ÿ•ฐ๏ธ`, + `Deep focus time. I'll stay quiet, ${name} ๐Ÿ˜ถโ€๐ŸŒซ๏ธ`, + `You're a night owl through and through, ${name} ๐Ÿฆ‰`, + `Late night, high coffee, big dreams, ${name} โ˜•๏ธโœจ`, + `Orbiting while the world sleeps. You're different, ${name} ๐ŸŒŒ`, + `The blue light is strong tonight, ${name} ๐Ÿ“ฑ`, + `Is it late or is it early, ${name}? ๐ŸŒ€`, + `Silent streets, loud thoughts, ${name} ๐ŸŒƒ`, + `Your dedication is unmatched, ${name} ๐ŸŽ–๏ธ`, + `Rest is coming soon, ${name}. Just hang in there โš“๏ธ`, + `The 2 AM club has a new member: ${name} ๐ŸŽŸ๏ธ`, + `Working in the shadows, ${name}? ๐Ÿ‘ค`, + `Nighttime is the best time for big ideas, right ${name}? ๐Ÿ’ก`, + ]; +// updated time logic + const hour = new Date().getHours(); - const hour = new Date().getHours(); - - if (hour >= 20) return randomTextFromArray(nightOnlyTexts); -if (hour >= 12) return randomTextFromArray(afternoonOnlyTexts); -if (hour >= 4) return randomTextFromArray(morningOnlyTexts); -return randomTextFromArray(lateNightTexts); -}; + if (hour >= 22 || hour < 4) return randomTextFromArray(lateNightTexts); // Late Night: 10 PM โ€“ 3:59 AM (bridges midnight) + if (hour >= 17) return randomTextFromArray(nightOnlyTexts); // Evening: 5 PM โ€“ 9:59 PM + if (hour >= 12) return randomTextFromArray(afternoonOnlyTexts); // Afternoon: 12 PM โ€“ 4:59 PM + return randomTextFromArray(morningOnlyTexts); // Morning: 4 AM โ€“ 11:59 AM (fallback) +}; -export default randomText; +export default randomText; \ No newline at end of file