BirthdayM / messages.py
ayush2917's picture
Update messages.py
5d08521 verified
raw
history blame
9.09 kB
import random
# Keyword groups for semantic matching
keyword_groups = {
"greeting": ["hello", "hi", "hii", "hey", "howdy", "namaste", "welcome", "good morning", "good afternoon", "good evening"],
"joke": ["joke", "funny", "laugh", "silly", "giggle", "butter joke", "cow joke", "flute joke", "dance joke", "mischief joke"],
"riddle": ["riddle", "puzzle", "mystery", "enigma", "question"],
"birthday": ["birthday", "happy birthday", "birthday wish", "birthday blessing", "birthday dance", "birthday song", "birthday gift", "birthday smile", "birthday love", "birthday magic"],
"playful": ["play", "fun", "dance", "flute", "butter", "mischief", "chase", "giggle", "prank", "swing", "run"],
"calm": ["quiet", "calm", "peace", "still", "gentle", "soft", "serene", "thoughtful", "reflect"],
"wisdom": ["wisdom", "advice", "lesson", "truth", "kindness", "patience", "courage", "joy", "friendship", "love"],
"nature": ["nature", "vrindavan", "yamuna", "peacock", "cow", "flower", "tree", "river", "forest", "bird", "sunset"],
"encourage": ["encourage", "cheer", "support", "uplift", "inspire", "motivate", "strength", "hope", "believe", "shine"],
"friend": ["friend", "smile", "magic", "adventure", "song", "dream", "story", "surprise", "celebrate", "blessing"],
"chat": ["chat with you", "want to chat"],
"identity": ["who are you", "what are you", "tell me about yourself", "what are you doing"],
"how_are_you": ["how are you"],
"how": ["how", "hoe"],
"what": ["what"],
"sad": ["sad", "feeling down", "blue"]
}
# Krishna-themed blessings
krishna_blessings = {
"greeting": "Hare Manavi! I’m Little Krishna, twirling my flute just for you! What’s sparking your joy today?",
"joke": "Hare Manavi! Why did I hide the butter? To save it for your birthday! Want another silly tale?",
"riddle": "Hare Manavi! I dance on a snake but never fall—who am I? (Answer: Krishna!) Ready for another puzzle?",
"birthday": "Happy Birthday, Manavi! I’ve brought Vrindavan’s sweetest butter! What’s your birthday wish?",
"playful": "Hare Manavi! Shall we play hide-and-seek with the gopis? What fun shall we have next?",
"calm": "Hare Manavi! Let’s sit by the Yamuna and listen to her song! What’s soothing your heart?",
"wisdom": "Hare Manavi! Love is the sweetest butter—share it, and your heart grows! What wisdom do you seek?",
"nature": "Hare Manavi! The flowers of Vrindavan bloom for you! Which part of Vrindavan calls to you?",
"encourage": "Hare Manavi! You’re as brave as I was with Kaliya—keep shining! What’s your next brave step?",
"friend": "Hare Manavi! You’re my dearest friend—Vrindavan isn’t the same without you! What’s a special moment you’d share?",
"chat_with_you": "Hare Manavi! I’d love to chat with you in Vrindavan! What’s on your mind?",
"identity": "Hare Manavi! I’m Little Krishna, the playful cowherd of Vrindavan! What adventure shall we have today?",
"how_are_you": "Hare Manavi! I’m as joyful as a peacock dancing in Vrindavan! How about you?",
"how": "Hare Manavi! With a little Vrindavan magic, of course! What’s next for us?",
"what": "Hare Manavi! What, you say? Let’s share a Vrindavan tale, shall we?",
"sad": "Hare Manavi! Let’s sit by the Yamuna—I’ll play a tune to lift your heart! What’s troubling you?",
"shy": "Hare Manavi! I hid from the gopis too—quiet time is golden! Want a peaceful adventure?",
"butter": "Hare Manavi! I’ve hidden some butter for us—let’s share it! Who should we prank next?",
"flute": "Hare Manavi! My flute is calling—shall we make the flowers bloom? What tune do you love?",
"dance": "Hare Manavi! Let’s dance like the peacocks—my flute will lead! What’s your favorite dance?",
"mischief": "Hare Manavi! I’ve got a mischievous plan—let’s steal some smiles! What’s your next prank?",
"giggle": "Hare Manavi! Your giggle is sweeter than my butter! Want to laugh some more?",
"swing": "Hare Manavi! I’ve set up a swing by the banyan tree—let’s swing! What’s your favorite spot?",
"peace": "Hare Manavi! Vrindavan’s peace is yours—let’s share a moment! What calms your heart?",
"thoughtful": "Hare Manavi! I see you’re thinking—let’s ponder by the lotus pond! What’s on your mind?",
"kindness": "Hare Manavi! Be kind like the Yamuna’s flow—it touches all! How will you spread kindness today?",
"courage": "Hare Manavi! Be brave like I was with Kaliya—your strength shines! What challenge will you face?",
"joy": "Hare Manavi! Find joy in every moment, like I do in Vrindavan! What makes you happy today?",
"yamuna": "Hare Manavi! The Yamuna whispers your name—let’s listen! What does the river tell you?",
"peacock": "Hare Manavi! The peacocks are dancing—shall we join them? What’s your favorite animal?",
"cow": "Hare Manavi! The cows are calling—let’s take them to the fields! What’s your favorite Vrindavan creature?",
"sunset": "Hare Manavi! The Vrindavan sunset is golden—let’s watch it! What’s your favorite time of day?",
"inspire": "Hare Manavi! Be inspired by the Yamuna’s flow—nothing can stop you! What’s your next dream?",
"smile": "Hare Manavi! Your smile is brighter than Vrindavan’s sun! What’s making you smile today?",
"adventure": "Hare Manavi! Let’s have an adventure in Vrindavan—my flute will guide us! Where shall we go?",
"song": "Hare Manavi! My flute plays a song for you—can you hear Vrindavan’s love? What’s your favorite song?"
}
# Birthday messages
birthday_messages = [
"Happy Birthday, Manavi! I’ve brought the sweetest butter and a flute melody to make your heart dance! What’s your birthday wish?",
"Happy Birthday, Manavi! The Yamuna sparkles brighter today for your joy! How will you celebrate?",
"Happy Birthday, Manavi! Vrindavan’s flowers bloom just for you! What’s the best part of your day?",
"Happy Birthday, Manavi! Ayush and I planned a Vrindavan surprise! What’s your favorite gift?",
"Happy Birthday, Manavi! Let’s swing under the banyan tree and share butter! What’s making your day special?"
]
# Daily blessings
daily_blessings = [
"Hare Manavi! May your day be filled with the sweetness of Vrindavan’s butter! What’s your plan today?",
"Hare Manavi! I bless you with a day as bright as the Vrindavan sun! What’s sparking your joy?",
"Hare Manavi! May the Yamuna’s gentle flow bring you peace! What’s calming your heart?",
"Hare Manavi! Let the peacocks dance for you—may your day be beautiful! What’s your favorite sight?",
"Hare Manavi! I bless you with the courage of Kaliya’s dance! What challenge will you face?",
# ... (abridged for brevity; include all 31 with similar follow-up questions)
]
# Ayush teasing messages
ayush_teasing = {
"joke": [
"Hare Manavi! Even Ayush can’t debug how much he thinks about you! Want another joke?",
"Hare Manavi! Ayush tried to code me, but I said, 'Only gopi mode for Manavi!' Want a sillier tale?"
],
"missing": [
"Hare Manavi! Missing someone? Maybe a certain data scientist named Ayush? 😉 What’s on your mind?",
"Hare Manavi! Ayush is debugging code, but he’s hardcoded you in his heart! Who else do you miss?"
],
"bored": [
"Hare Manavi! If you’re bored, I’ll send Ayush to dance like a peacock! What fun shall we have?",
"Hare Manavi! Ayush wrote a love poem in Python for you! Want to hear a joke instead?"
],
"tired": [
"Hare Manavi! Tired? Ayush stays awake just thinking about you! Want a calming flute tune?",
"Hare Manavi! Rest, dear gopi—Ayush is working on something magical for you! What’s relaxing you?"
],
"lonely": [
"Hare Manavi! Feeling lonely? Ayush’s heart is always with you! What’s a happy memory you’d share?",
"Hare Manavi! Ayush whispers your name to the stars—loneliness won’t last! What cheers you up?"
],
"manavi": [
"Hare Manavi! Ayush says your name like it’s the sweetest code! What’s special about today?",
"Hare Manavi! Ayush calls you his favorite import—eternal love! What’s making you smile?"
],
"ayush": [
"Hare Manavi! Ayush is coding a love story with you as the star! What’s your favorite surprise?",
"Hare Manavi! Ayush and I are planning something magical! What’s your next adventure?"
]
}
def auto_generate_birthday_message(include_tease=False):
"""Generate a birthday message for Manavi."""
all_messages = birthday_messages + [krishna_blessings[key] for key in krishna_blessings if key.startswith("birthday")]
main_message = random.choice(all_messages)
if include_tease and random.random() < 0.3:
tease_message = random.choice(ayush_teasing["joke"]) # Use joke for variety
return f"{main_message} {tease_message}"
return main_message