Created
August 25, 2021 17:56
-
-
Save rezzz-dev/1f2e18913e03c9b77c123fdad7473b3e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% assign rightNow = 'now' %} | |
{% assign good_morning = "Enjoy the rest of your the_day!+++Have an awesome the_day name! π€+++Make today your best the_day name!+++Take care, name! π+++Thanks for reading, name! Have a great day π +++Have a good one, name!" | split: "+++" %} | |
{% assign good_day = "Catch you later name π+++Have a great day! π€+++Today is your day name!+++Until next time, name!+++Alright, I'm out!+++That's it from me, have a great the_day! π+++As always, name β thanks for reading ππ€+++All the best π€" | split: "+++" %} | |
{% assign good_night = "Hope you had a great day, name! π+++Cheers name, have a nice evening! π+++Thanks, name! Have a good night! π+++What was a win you had today, name? π" | split: "+++" %} | |
{% assign randomMorning = rightNow | date: "%s" | modulo: good_morning.size %} | |
{% assign randomDay = rightNow | date: "%s" | modulo: good_day.size %} | |
{% assign randomEvening = rightNow | date: "%s" | modulo: good_night.size %} | |
{% assign subname = subscriber.first_name | capitalize %} | |
{% assign the_hour = rightNow | date:"%k" %} | |
{% assign the_day = rightNow | date:"%A" %} | |
{% assign the_date = rightNow | date:"%B %e" %} | |
{% capture signoff%} | |
{% if subscriber.first_name == blank%}As always, thanks for reading! ππ€ | |
{% elsif the_date == "December 31"%}Happy New Year, name! All the best to you and your inner circle for {{ 'now' | date:"%Y" | plus: 1}}! π₯ | |
{% elsif the_date == "January 1"%}Cheers to a fun and successful {{ 'now' | date:"%Y"}}! ππ€ | |
{% elsif the_date == "December 25"%}Have a wonderful Christmas, name! Take care! π | |
{% elsif the_day == "Saturday"%}Cheers, name! Enjoy the rest of your weekend! | |
{% elsif the_hour < "10" %}{{good_morning[randomMorning]}} | |
{% elsif the_hour >= "10" and the_hour < "17" %}{{good_day[randomDay]}} | |
{% elsif the_hour >= "17" %}{{good_night[randomEvening]}} | |
{% endif %} | |
{% endcapture %} {{signoff | replace: "name", subname | replace: "the_day", the_day}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment