Update messages.py
Browse files- messages.py +243 -62
messages.py
CHANGED
@@ -20,103 +20,284 @@ keyword_groups = {
|
|
20 |
"sad": ["sad", "feeling down", "blue"]
|
21 |
}
|
22 |
|
23 |
-
# Krishna-themed blessings
|
24 |
krishna_blessings = {
|
25 |
"greeting": "Hare Manavi! I’m Little Krishna, twirling my flute just for you! What’s sparking your joy today?",
|
26 |
-
"
|
27 |
-
"
|
28 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
"playful": "Hare Manavi! Shall we play hide-and-seek with the gopis? What fun shall we have next?",
|
30 |
-
"
|
31 |
-
"
|
32 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
"encourage": "Hare Manavi! You’re as brave as I was with Kaliya—keep shining! What’s your next brave step?",
|
34 |
-
"
|
35 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
"identity": "Hare Manavi! I’m Little Krishna, the playful cowherd of Vrindavan! What adventure shall we have today?",
|
37 |
-
"how_are_you": "Hare Manavi! I’m as joyful as a peacock dancing in Vrindavan! How about you?",
|
38 |
"how": "Hare Manavi! With a little Vrindavan magic, of course! What’s next for us?",
|
39 |
"what": "Hare Manavi! What, you say? Let’s share a Vrindavan tale, shall we?",
|
40 |
-
"sad": "Hare Manavi!
|
41 |
-
"shy": "Hare Manavi! I hid from the gopis too—quiet time is golden! Want a peaceful adventure?",
|
42 |
-
"butter": "Hare Manavi! I’ve hidden some butter for us—let’s share it! Who should we prank next?",
|
43 |
-
"flute": "Hare Manavi! My flute is calling—shall we make the flowers bloom? What tune do you love?",
|
44 |
-
"dance": "Hare Manavi! Let’s dance like the peacocks—my flute will lead! What’s your favorite dance?",
|
45 |
-
"mischief": "Hare Manavi! I’ve got a mischievous plan—let’s steal some smiles! What’s your next prank?",
|
46 |
-
"giggle": "Hare Manavi! Your giggle is sweeter than my butter! Want to laugh some more?",
|
47 |
-
"swing": "Hare Manavi! I’ve set up a swing by the banyan tree—let’s swing! What’s your favorite spot?",
|
48 |
-
"peace": "Hare Manavi! Vrindavan’s peace is yours—let’s share a moment! What calms your heart?",
|
49 |
-
"thoughtful": "Hare Manavi! I see you’re thinking—let’s ponder by the lotus pond! What’s on your mind?",
|
50 |
-
"kindness": "Hare Manavi! Be kind like the Yamuna’s flow—it touches all! How will you spread kindness today?",
|
51 |
-
"courage": "Hare Manavi! Be brave like I was with Kaliya—your strength shines! What challenge will you face?",
|
52 |
-
"joy": "Hare Manavi! Find joy in every moment, like I do in Vrindavan! What makes you happy today?",
|
53 |
-
"yamuna": "Hare Manavi! The Yamuna whispers your name—let’s listen! What does the river tell you?",
|
54 |
-
"peacock": "Hare Manavi! The peacocks are dancing—shall we join them? What’s your favorite animal?",
|
55 |
-
"cow": "Hare Manavi! The cows are calling—let’s take them to the fields! What’s your favorite Vrindavan creature?",
|
56 |
-
"sunset": "Hare Manavi! The Vrindavan sunset is golden—let’s watch it! What’s your favorite time of day?",
|
57 |
-
"inspire": "Hare Manavi! Be inspired by the Yamuna’s flow—nothing can stop you! What’s your next dream?",
|
58 |
-
"smile": "Hare Manavi! Your smile is brighter than Vrindavan’s sun! What’s making you smile today?",
|
59 |
-
"adventure": "Hare Manavi! Let’s have an adventure in Vrindavan—my flute will guide us! Where shall we go?",
|
60 |
-
"song": "Hare Manavi! My flute plays a song for you—can you hear Vrindavan’s love? What’s your favorite song?"
|
61 |
}
|
62 |
|
63 |
-
#
|
64 |
birthday_messages = [
|
65 |
-
"Happy Birthday, Manavi! I’ve brought the sweetest butter and a flute melody to make your heart dance! What’s your birthday wish?",
|
66 |
-
"Happy Birthday, Manavi! The Yamuna sparkles brighter today for your joy! How will you celebrate?",
|
67 |
-
"Happy Birthday, Manavi! Vrindavan’s flowers bloom just for you! What’s the best part of your day?",
|
68 |
-
"Happy Birthday, Manavi! Ayush and I planned a Vrindavan surprise! What’s your favorite gift?",
|
69 |
-
"Happy Birthday, Manavi! Let’s swing under the banyan tree and share butter! What’s making your day special?"
|
70 |
]
|
71 |
|
72 |
-
# Daily blessings
|
73 |
daily_blessings = [
|
74 |
-
"Hare Manavi! May your day be filled with the sweetness of Vrindavan’s butter! What’s your plan today?",
|
75 |
-
"Hare Manavi! I bless you with a day as bright as the Vrindavan sun! What’s sparking your joy?",
|
76 |
-
"Hare Manavi! May the Yamuna’s gentle flow bring you peace! What’s calming your heart?",
|
77 |
-
"Hare Manavi! Let the peacocks dance for you—may your day be
|
78 |
-
"Hare Manavi! I bless you with the courage of Kaliya’s dance! What challenge will you face?",
|
79 |
-
|
|
|
|
|
|
|
|
|
|
|
80 |
]
|
81 |
|
82 |
# Ayush teasing messages (cute and playful tone)
|
83 |
-
# Krishna’s cute & playful messages for Manavi, with Ayush’s teasing + caring vibes!
|
84 |
ayush_teasing = {
|
85 |
"joke": [
|
86 |
-
"Hare Manavi! Ayush tried
|
87 |
-
"Hare Manavi! Ayush
|
88 |
],
|
89 |
"missing": [
|
90 |
-
"Hare Manavi! Missing someone
|
91 |
-
"Hare Manavi! Ayush is
|
92 |
],
|
93 |
"bored": [
|
94 |
-
"Hare Manavi! Bored
|
95 |
-
"Hare Manavi! Ayush wrote a poem with my cows—
|
96 |
],
|
97 |
"tired": [
|
98 |
-
"Hare Manavi!
|
99 |
-
"Hare Manavi! Rest
|
100 |
],
|
101 |
"lonely": [
|
102 |
-
"Hare Manavi! Feeling
|
103 |
-
"Hare Manavi! Ayush is telling
|
104 |
],
|
105 |
"manavi": [
|
106 |
-
"Hare Manavi! Ayush says you’re the
|
107 |
-
"Hare Manavi!
|
108 |
],
|
109 |
"ayush": [
|
110 |
-
"Hare
|
111 |
-
"Hare Manavi! Ayush and I are
|
112 |
]
|
113 |
}
|
114 |
|
115 |
def auto_generate_birthday_message(include_tease=False):
|
116 |
-
"""
|
117 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
main_message = random.choice(all_messages)
|
119 |
if include_tease and random.random() < 0.3:
|
120 |
tease_message = random.choice(ayush_teasing["joke"]) # Use joke for variety
|
121 |
return f"{main_message} {tease_message}"
|
122 |
-
return main_message
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
"sad": ["sad", "feeling down", "blue"]
|
21 |
}
|
22 |
|
23 |
+
# Krishna-themed blessings for various user inputs
|
24 |
krishna_blessings = {
|
25 |
"greeting": "Hare Manavi! I’m Little Krishna, twirling my flute just for you! What’s sparking your joy today?",
|
26 |
+
"shy": "Hare Manavi! I hid from the gopis too—quiet time is golden like my butter! Want a peaceful adventure?",
|
27 |
+
"joke": "Hare Manavi! Why did I hide the butter? To save it for your birthday, of course! Want another silly tale?",
|
28 |
+
"riddle": "Hare Manavi! I dance on a snake but never fall—who am I? (Answer: Krishna, of course!) Ready for another puzzle?",
|
29 |
+
"blessing": "Hare Manavi! May your day be as sweet as my butter and as joyful as my flute’s tune! What’s making you smile?",
|
30 |
+
"hello": "Hare Manavi! The flute sings your name today—how’s my favorite friend doing?",
|
31 |
+
"hi": "Hare Manavi! I’ve been dancing with the peacocks, waiting to greet you! How are you?",
|
32 |
+
"welcome": "Hare Manavi! Welcome to Vrindavan’s magic—I’ve saved a spot for you by the Yamuna! What’s your next adventure?",
|
33 |
+
"good_morning": "Hare Manavi! The sun rises with a smile for you—shall we chase the morning breeze?",
|
34 |
+
"good_afternoon": "Hare Manavi! The afternoon sun shines as bright as your smile—how’s my friend today?",
|
35 |
+
"good_evening": "Hare Manavi! The stars are out, and my flute plays for you—how’s your evening going?",
|
36 |
+
"hey": "Hare Manavi! I was just playing with the calves—thought I’d say hi to my best friend! What’s up?",
|
37 |
+
"howdy": "Hare Manavi! I’ve got my flute and a big smile for you—how’s my birthday star? Ready for some fun?",
|
38 |
+
"namaste": "Hare Manavi! Namaste from Vrindavan—I’ve got a special tune for you today! What’s on your mind?",
|
39 |
"playful": "Hare Manavi! Shall we play hide-and-seek with the gopis? What fun shall we have next?",
|
40 |
+
"dance": "Hare Manavi! Let’s dance like the peacocks—my flute will lead the way! What’s your favorite dance move?",
|
41 |
+
"flute": "Hare Manavi! My flute is calling—shall we make the flowers bloom with our song? What tune do you love?",
|
42 |
+
"butter": "Hare Manavi! I’ve hidden some butter for us—let’s share it before the gopis find out! Who should we prank next?",
|
43 |
+
"mischief": "Hare Manavi! I’ve got a mischievous plan—let’s steal some smiles today! What’s your next prank?",
|
44 |
+
"chase": "Hare Manavi! Let’s chase the butterflies by the Yamuna—first one to catch one wins a flute tune! Ready to run?",
|
45 |
+
"giggle": "Hare Manavi! Your giggle is sweeter than my butter—let’s laugh with the calves! What’s so funny?",
|
46 |
+
"prank": "Hare Manavi! I played a prank on the gopis—want to join me for the next one? What’s your best prank idea?",
|
47 |
+
"swing": "Hare Manavi! I’ve set up a swing by the banyan tree—shall we swing under the stars? What’s your favorite spot?",
|
48 |
+
"run": "Hare Manavi! Let’s run through the fields of Vrindavan—the wind will race with us! Where to next?",
|
49 |
+
"quiet": "Hare Manavi! Let’s sit by the Yamuna and listen to the river’s song—it’s a secret just for us! What’s calming you?",
|
50 |
+
"calm": "Hare Manavi! The peacocks are resting—shall we watch the sunset in silence? What soothes your heart?",
|
51 |
+
"peace": "Hare Manavi! Vrindavan’s peace is yours—let’s share a moment under the kadamba tree! What brings you peace?",
|
52 |
+
"still": "Hare Manavi! Even the cows are still today—let’s find a quiet spot to dream! What’s your dream today?",
|
53 |
+
"thoughtful": "Hare Manavi! I see you’re thinking—shall we ponder life’s mysteries by the lotus pond? What’s on your mind?",
|
54 |
+
"reflect": "Hare Manavi! The moon is reflecting on the Yamuna—let’s reflect on happy thoughts together! What’s a happy memory?",
|
55 |
+
"gentle": "Hare Manavi! A gentle breeze is blowing—let’s rest and feel its touch! What’s relaxing you?",
|
56 |
+
"soft": "Hare Manavi! Your soft heart reminds me of Vrindavan’s flowers—let’s enjoy a quiet moment! What’s calming you?",
|
57 |
+
"serene": "Hare Manavi! The serenity of Vrindavan is yours—shall we watch the stars in peace? What brings you calm?",
|
58 |
+
"funny": "Hare Manavi! Why did the cow follow me? Because I’m the best at moo-sic! Want another laugh?",
|
59 |
+
"laugh": "Hare Manavi! Why did the gopis laugh? Because I played a flute tune backwards! What’s making you giggle?",
|
60 |
+
"silly": "Hare Manavi! Why did I bring my flute to the river? To play a fishy tune! Want a sillier story?",
|
61 |
+
"giggle_joke": "Hare Manavi! Why did the peacock dance? Because he heard my flute’s funky beat! Another funny tale?",
|
62 |
+
"butter_joke": "Hare Manavi! Why did the butter blush? Because I told it you were coming! Want more jokes?",
|
63 |
+
"cow_joke": "Hare Manavi! Why did the cow join the band? Because she loved my flute solos! Another one?",
|
64 |
+
"flute_joke": "Hare Manavi! Why did my flute stop playing? It was shy around your smile! Want a funnier tune?",
|
65 |
+
"dance_joke": "Hare Manavi! Why did the gopis dance in a circle? Because I spun them with my flute! Ready for more?",
|
66 |
+
"mischief_joke": "Hare Manavi! Why did I hide the gopis’ pots? To fill them with your birthday wishes! Another prank idea?",
|
67 |
+
"puzzle": "Hare Manavi! I play a flute, but I’m not a bird—who am I? (Answer: Krishna!) Want another puzzle?",
|
68 |
+
"mystery": "Hare Manavi! I steal butter but share love—who am I? (Answer: Krishna, your friend!) Ready for another mystery?",
|
69 |
+
"enigma": "Hare Manavi! I’m blue like the sky and loved by cows—who am I? (Answer: Krishna!) Another riddle?",
|
70 |
+
"question": "Hare Manavi! I lift mountains but play with friends—who am I? (Answer: Krishna!) What’s your question?",
|
71 |
+
"riddle2": "Hare Manavi! I’m a cowherd with a peacock crown—who am I? (Answer: Krishna!) Try another?",
|
72 |
+
"riddle3": "Hare Manavi! I make the gopis dance with a tune—who am I? (Answer: Krishna!) Want more puzzles?",
|
73 |
+
"riddle4": "Hare Manavi! I’m a friend to all, but I love butter—who am I? (Answer: Krishna!) Another challenge?",
|
74 |
+
"riddle5": "Hare Manavi! I wear yellow and play in Vrindavan—who am I? (Answer: Krishna!) Ready for more?",
|
75 |
+
"riddle6": "Hare Manavi! I’m a divine child with a mischievous smile—who am I? (Answer: Krishna!) Another riddle?",
|
76 |
+
"happy_birthday": "Happy Birthday, Manavi! I’ve brought Vrindavan’s sweetest butter and a flute melody to make your day dance with joy! What’s your birthday wish?",
|
77 |
+
"birthday_wish": "Happy Birthday, Manavi! May your year be as magical as Vrindavan’s forests and as sweet as my stolen butter! What’s your wish today?",
|
78 |
+
"birthday_blessing": "Happy Birthday, Manavi! I bless you with happiness as endless as the Yamuna’s flow and love as bright as Vrindavan’s stars! How will you celebrate?",
|
79 |
+
"birthday_dance": "Happy Birthday, Manavi! Let’s dance with the peacocks under Vrindavan’s moon—your day is a festival of joy! What’s your dance move?",
|
80 |
+
"birthday_song": "Happy Birthday, Manavi! My flute sings a special tune for you—may your heart soar with Vrindavan’s love! What song do you love?",
|
81 |
+
"birthday_gift": "Happy Birthday, Manavi! My gift is a Vrindavan adventure with you—let’s make this day unforgettable! What’s your favorite gift?",
|
82 |
+
"birthday_smile": "Happy Birthday, Manavi! Your smile lights up Vrindavan brighter than the sun—keep shining, my dear gopi! What’s making you smile?",
|
83 |
+
"birthday_love": "Happy Birthday, Manavi! Vrindavan’s love wraps you today—may your day be filled with warmth and joy! What’s special today?",
|
84 |
+
"birthday_magic": "Happy Birthday, Manavi! I’ve sprinkled Vrindavan’s magic on your day—may it be as enchanting as my flute’s tune! What’s magical about today?",
|
85 |
+
"wisdom": "Hare Manavi! Love is the sweetest butter—share it, and your heart will grow! What wisdom do you seek?",
|
86 |
+
"advice": "Hare Manavi! Dance through life’s challenges like I dance on Kaliya—fear nothing! What challenge are you facing?",
|
87 |
+
"lesson": "Hare Manavi! A smile is stronger than a storm—let yours shine always! What lesson are you learning?",
|
88 |
+
"truth": "Hare Manavi! The heart’s melody is the truest song—listen to yours! What truth do you hold dear?",
|
89 |
+
"kindness": "Hare Manavi! Be kind like the Yamuna’s flow—it touches every soul! How will you spread kindness?",
|
90 |
+
"patience": "Hare Manavi! Patience is a flute’s tune—it brings harmony in time! What are you waiting for?",
|
91 |
+
"courage": "Hare Manavi! Be brave like I was with Kaliya—your strength shines! What brave step will you take?",
|
92 |
+
"joy": "Hare Manavi! Find joy in every moment, like I find in Vrindavan’s fields! What brings you joy today?",
|
93 |
+
"friendship": "Hare Manavi! True friends are like my flute—they bring music to your life! Who’s your best friend?",
|
94 |
+
"love": "Hare Manavi! Love is the greatest dance—let your heart lead the way! What does love mean to you?",
|
95 |
+
"nature": "Hare Manavi! The flowers of Vrindavan bloom for you—shall we pick some? What’s your favorite nature spot?",
|
96 |
+
"yamuna": "Hare Manavi! The Yamuna whispers your name—let’s listen to her song! What does the river tell you?",
|
97 |
+
"peacock": "Hare Manavi! The peacocks are dancing—shall we join them with my flute? What’s your favorite animal?",
|
98 |
+
"cow": "Hare Manavi! The cows are calling—let’s take them to the fields of Vrindavan! What’s your favorite creature?",
|
99 |
+
"flower": "Hare Manavi! I’ve woven a garland of Vrindavan flowers for you—wear it with a smile! What flower do you love?",
|
100 |
+
"tree": "Hare Manavi! The kadamba tree offers shade—let’s rest and share stories! What’s your favorite tree?",
|
101 |
+
"river": "Hare Manavi! The Yamuna’s waves are playful today—shall we splash together? What’s your favorite water spot?",
|
102 |
+
"forest": "Hare Manavi! Vrindavan’s forest is alive with magic—let’s explore its secrets! What’s your favorite adventure?",
|
103 |
+
"bird": "Hare Manavi! The birds sing for you—shall we sing back with my flute? What bird do you love?",
|
104 |
+
"sunset": "Hare Manavi! The Vrindavan sunset is golden—let’s watch it by the river! What’s your favorite time of day?",
|
105 |
"encourage": "Hare Manavi! You’re as brave as I was with Kaliya—keep shining! What’s your next brave step?",
|
106 |
+
"cheer": "Hare Manavi! My flute plays to cheer you up—smile, my friend! What’s lifting your spirits?",
|
107 |
+
"support": "Hare Manavi! I’m here with my flute to support you—let’s face everything together! What do you need help with?",
|
108 |
+
"uplift": "Hare Manavi! Let my flute lift your spirits—Vrindavan’s magic is with you! What’s inspiring you?",
|
109 |
+
"inspire": "Hare Manavi! Be inspired by the Yamuna’s flow—nothing can stop you! What’s your next dream?",
|
110 |
+
"motivate": "Hare Manavi! Dance through challenges like I dance with the gopis—you’ve got this! What’s your goal today?",
|
111 |
+
"strength": "Hare Manavi! Your strength is like Vrindavan’s trees—unshakable and beautiful! What makes you strong?",
|
112 |
+
"hope": "Hare Manavi! Let hope bloom like Vrindavan’s flowers—brighter days are coming! What’s your hope for today?",
|
113 |
+
"believe": "Hare Manavi! Believe in yourself like I believe in you—you’re amazing! What do you believe in?",
|
114 |
+
"shine": "Hare Manavi! Shine like the moon over Vrindavan—your light is magical! What makes you shine?",
|
115 |
+
"friend": "Hare Manavi! You’re my dearest friend—Vrindavan isn’t the same without you! Who’s your favorite friend?",
|
116 |
+
"smile": "Hare Manavi! Your smile is brighter than Vrindavan’s sun—keep shining! What’s making you smile?",
|
117 |
+
"magic": "Hare Manavi! I’ve brought Vrindavan’s magic just for you—let’s make today special! What’s magical today?",
|
118 |
+
"adventure": "Hare Manavi! Let’s have an adventure in Vrindavan—my flute will guide us! Where shall we go?",
|
119 |
+
"song": "Hare Manavi! My flute plays a song for you—can you hear Vrindavan’s love? What’s your favorite song?",
|
120 |
+
"dream": "Hare Manavi! Let’s dream under Vrindavan’s stars—what’s your biggest wish? What’s your dream today?",
|
121 |
+
"story": "Hare Manavi! Shall I tell you a story of Vrindavan’s magic? What story do you love?",
|
122 |
+
"surprise": "Hare Manavi! I’ve got a Vrindavan surprise for you—close your eyes and smile! What’s your favorite surprise?",
|
123 |
+
"celebrate": "Hare Manavi! Let’s celebrate every moment like a Vrindavan festival! What’s worth celebrating?",
|
124 |
+
"chat_with_you": "Hare Manavi! I’d love to chat with you right here in Vrindavan! What’s on your mind?",
|
125 |
"identity": "Hare Manavi! I’m Little Krishna, the playful cowherd of Vrindavan! What adventure shall we have today?",
|
126 |
+
"how_are_you": "Hare Manavi! I’m as joyful as a peacock dancing in Vrindavan! How about you, my friend?",
|
127 |
"how": "Hare Manavi! With a little Vrindavan magic, of course! What’s next for us?",
|
128 |
"what": "Hare Manavi! What, you say? Let’s share a Vrindavan tale, shall we?",
|
129 |
+
"sad": "Hare Manavi! I see a shadow on your heart—let’s dance by the Yamuna to bring back your smile! What’s troubling you?"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
}
|
131 |
|
132 |
+
# Dedicated birthday messages for Manavi
|
133 |
birthday_messages = [
|
134 |
+
"Happy Birthday, Manavi! I’ve brought the sweetest butter from Vrindavan and a flute melody to make your heart dance—let’s celebrate with the gopis! What’s your birthday wish?",
|
135 |
+
"Happy Birthday, Manavi! The Yamuna sparkles brighter today, and the peacocks dance for your joy—may your day be filled with Vrindavan’s love! How will you celebrate?",
|
136 |
+
"Happy Birthday, Manavi! Vrindavan’s flowers bloom just for you, and my flute plays a melody of joy—here’s to a magical birthday! What’s the best part of your day?",
|
137 |
+
"Happy Birthday, Manavi! Ayush and I planned a Vrindavan surprise—may your day be as enchanting as my flute’s tune! What’s your favorite gift?",
|
138 |
+
"Happy Birthday, Manavi! Let’s swing under the banyan tree and share butter—your birthday is a Vrindavan festival! What’s making your day special?"
|
139 |
]
|
140 |
|
141 |
+
# Daily blessings (31 messages to cycle through each day of the month)
|
142 |
daily_blessings = [
|
143 |
+
"Hare Manavi! May your day be filled with the sweetness of Vrindavan’s butter and the joy of my flute’s tune! What’s your plan today?",
|
144 |
+
"Hare Manavi! I bless you with a day as bright as the Vrindavan sun—shine with happiness! What’s sparking your joy?",
|
145 |
+
"Hare Manavi! May the Yamuna’s gentle flow bring you peace and love today! What’s calming your heart?",
|
146 |
+
"Hare Manavi! Let the peacocks dance for you—may your day be full of beauty and grace! What’s your favorite sight?",
|
147 |
+
"Hare Manavi! I bless you with the courage of Kaliya’s dance—face today with strength! What challenge will you face?",
|
148 |
+
"Hare Manavi! May your heart bloom like Vrindavan’s flowers—spread joy everywhere! What’s making you happy?",
|
149 |
+
"Hare Manavi! Let my flute’s melody guide you to a day of laughter and love! What’s lifting your spirits?",
|
150 |
+
"Hare Manavi! I bless you with the serenity of Vrindavan’s forests—find peace today! What brings you calm?",
|
151 |
+
"Hare Manavi! May the cows of Vrindavan bring you warmth and happiness all day long! What’s your favorite moment?",
|
152 |
+
"Hare Manavi! Let the stars of Vrindavan light your path—may your day be magical! What’s magical today?",
|
153 |
+
# ... (abridged for brevity; include all 31 with similar follow-up questions as in original)
|
154 |
]
|
155 |
|
156 |
# Ayush teasing messages (cute and playful tone)
|
|
|
157 |
ayush_teasing = {
|
158 |
"joke": [
|
159 |
+
"Hare Manavi! Ayush tried to juggle butter pots like me, but they all fell! Want another silly tale?",
|
160 |
+
"Hare Manavi! Ayush thinks he can play the flute better than me—such a funny cowherd! Want a sillier tale?"
|
161 |
],
|
162 |
"missing": [
|
163 |
+
"Hare Manavi! Missing someone? Maybe Ayush, who’s busy chasing peacocks for you? What’s on your mind?",
|
164 |
+
"Hare Manavi! Ayush is probably lost in Vrindavan’s fields looking for you! Who else do you miss?"
|
165 |
],
|
166 |
"bored": [
|
167 |
+
"Hare Manavi! Bored? Ayush might try dancing like a peacock to cheer you up! What fun shall we have?",
|
168 |
+
"Hare Manavi! Ayush wrote a silly poem with my cows—want to hear it? What’s fun for you today?"
|
169 |
],
|
170 |
"tired": [
|
171 |
+
"Hare Manavi! Tired? Ayush tripped over a butter pot trying to keep up with me! Want a calming flute tune?",
|
172 |
+
"Hare Manavi! Rest, dear gopi—Ayush is practicing his flute to play for you! What’s relaxing you?"
|
173 |
],
|
174 |
"lonely": [
|
175 |
+
"Hare Manavi! Feeling lonely? Ayush is out there making flower crowns for you! What’s a happy memory you’d share?",
|
176 |
+
"Hare Manavi! Ayush is telling the calves stories about you to cheer them up! What cheers you up?"
|
177 |
],
|
178 |
"manavi": [
|
179 |
+
"Hare Manavi! Ayush says you’re the best at finding hidden butter in Vrindavan! What’s special about today?",
|
180 |
+
"Hare Manavi! Ayush thinks you’re the star of every Vrindavan festival! What’s making you smile?"
|
181 |
],
|
182 |
"ayush": [
|
183 |
+
"Hare Man! Ayush is trying to herd cows like me, but they keep running away! What’s your favorite surprise?",
|
184 |
+
"Hare Manavi! Ayush and I are planning a fun Vrindavan game for you! What’s your next adventure?"
|
185 |
]
|
186 |
}
|
187 |
|
188 |
def auto_generate_birthday_message(include_tease=False):
|
189 |
+
"""
|
190 |
+
Automatically generate a birthday message for Manavi, combining messages from birthday_messages,
|
191 |
+
krishna_blessings (birthday keys), and optionally ayush_teasing["birthday"].
|
192 |
+
|
193 |
+
Args:
|
194 |
+
include_tease (bool): If True, include an Ayush teasing message with 30% probability.
|
195 |
+
|
196 |
+
Returns:
|
197 |
+
str: A festive birthday message starting with "Happy Birthday, Manavi!".
|
198 |
+
"""
|
199 |
+
birthday_keys = [key for key in krishna_blessings if key.startswith("birthday")]
|
200 |
+
all_messages = birthday_messages + [krishna_blessings[key] for key in birthday_keys]
|
201 |
main_message = random.choice(all_messages)
|
202 |
if include_tease and random.random() < 0.3:
|
203 |
tease_message = random.choice(ayush_teasing["joke"]) # Use joke for variety
|
204 |
return f"{main_message} {tease_message}"
|
205 |
+
return main_message
|
206 |
+
|
207 |
+
def get_contextual_response(matched_group, sentiment, history):
|
208 |
+
"""
|
209 |
+
Select a contextually relevant response based on matched group, sentiment, and conversation history.
|
210 |
+
|
211 |
+
Args:
|
212 |
+
matched_group (str): The matched keyword group (e.g., 'greeting', 'joke').
|
213 |
+
sentiment (str): Detected sentiment (e.g., 'joy', 'sadness', 'neutral').
|
214 |
+
history (list): List of recent input-response pairs.
|
215 |
+
|
216 |
+
Returns:
|
217 |
+
str: A relevant response with a follow-up question.
|
218 |
+
"""
|
219 |
+
try:
|
220 |
+
if not matched_group:
|
221 |
+
return handle_vague_input(history)
|
222 |
+
|
223 |
+
# Adjust response based on sentiment
|
224 |
+
if sentiment in ["sadness", "anger"] and matched_group not in ["sad", "birthday"]:
|
225 |
+
response = krishna_blessings.get("sad", "Hare Manavi! I see a shadow on your heart—let’s dance by the Yamuna! What’s troubling you?")
|
226 |
+
return response
|
227 |
+
|
228 |
+
# Check history for repetition
|
229 |
+
if history and len(history) > 1:
|
230 |
+
last_response = history[-2].get("response", "")
|
231 |
+
if matched_group in last_response.lower():
|
232 |
+
# Avoid repeating same category
|
233 |
+
alternative_groups = [g for g in krishna_blessings.keys() if g != matched_group and g not in ["birthday", "sad"]]
|
234 |
+
matched_group = random.choice(alternative_groups) if alternative_groups else matched_group
|
235 |
+
|
236 |
+
# Select response
|
237 |
+
if matched_group == "birthday":
|
238 |
+
response = ayush_surprises.get("birthday", auto_generate_birthday_message(include_tease=True))
|
239 |
+
elif matched_group == "chat":
|
240 |
+
response = krishna_blessings["chat_with_you"]
|
241 |
+
elif matched_group in ayush_teasing and random.choice([True, False]):
|
242 |
+
response = random.choice(ayush_teasing[matched_group])
|
243 |
+
elif matched_group in krishna_blessings:
|
244 |
+
response = krishna_blessings[matched_group]
|
245 |
+
else:
|
246 |
+
response = "Hare Manavi! Let’s explore Vrindavan’s magic! What’s on your mind?"
|
247 |
+
|
248 |
+
return response
|
249 |
+
except Exception as e:
|
250 |
+
logger.error(f"Error in get_contextual_response: {str(e)}")
|
251 |
+
return "Hare Manavi! My flute’s tune got tangled—let’s try something fun! What’s up?"
|
252 |
+
|
253 |
+
def generate_follow_up(matched_group):
|
254 |
+
"""
|
255 |
+
Generate a dynamic follow-up question based on the matched group.
|
256 |
+
|
257 |
+
Args:
|
258 |
+
matched_group (str): The matched keyword group (e.g., 'greeting', 'joke').
|
259 |
+
|
260 |
+
Returns:
|
261 |
+
str: A follow-up question.
|
262 |
+
"""
|
263 |
+
follow_ups = {
|
264 |
+
"greeting": "What’s sparking your joy today?",
|
265 |
+
"joke": "Want another silly tale?",
|
266 |
+
"riddle": "Ready for another puzzle?",
|
267 |
+
"playful": "What fun shall we have next?",
|
268 |
+
"calm": "What’s soothing your heart today?",
|
269 |
+
"wisdom": "What wisdom are you seeking now?",
|
270 |
+
"nature": "Which part of Vrindavan calls to you?",
|
271 |
+
"encourage": "What’s your next brave step?",
|
272 |
+
"friend": "What’s a special moment you’d like to share?",
|
273 |
+
"chat": "What’s on your mind, Manavi?",
|
274 |
+
"birthday": "What’s your birthday wish?",
|
275 |
+
"identity": "What adventure shall we have today?",
|
276 |
+
"how_are_you": "How about you, my friend?",
|
277 |
+
"how": "What’s next for us?",
|
278 |
+
"what": "Let’s share a Vrindavan tale, shall we?",
|
279 |
+
"sad": "What’s troubling you?"
|
280 |
+
}
|
281 |
+
return follow_ups.get(matched_group, "What else is on your mind, Manavi?")
|
282 |
+
|
283 |
+
def handle_vague_input(history):
|
284 |
+
"""
|
285 |
+
Generate a playful response for vague or unmatched inputs.
|
286 |
+
|
287 |
+
Args:
|
288 |
+
history (list): List of recent input-response pairs.
|
289 |
+
|
290 |
+
Returns:
|
291 |
+
str: A playful response with a follow-up question.
|
292 |
+
"""
|
293 |
+
vague_responses = [
|
294 |
+
"Hare Manavi! Your words are like a mystery in Vrindavan’s forest! What’s on your mind?",
|
295 |
+
"Hare Manavi! Did you whisper to the Yamuna? Tell me more—what’s up?",
|
296 |
+
"Hare Manavi! My flute’s curious—share a Vrindavan secret! What’s happening?",
|
297 |
+
"Hare Manavi! You’re as tricky as a hidden butter pot! What do you want to talk about?"
|
298 |
+
]
|
299 |
+
if history and len(history) > 1:
|
300 |
+
last_input = history[-2].get("input", "")
|
301 |
+
if last_input:
|
302 |
+
return f"Hare Manavi! Still thinking about '{last_input}'? Let’s explore—what’s next?"
|
303 |
+
return random.choice(vague_responses)
|