rdune71's picture
Implement Cosmic Cascade Response Mode without NASA API integration
aba1e9b
import random
from datetime import datetime
from typing import Dict, Optional
class CosmicCatPersonality:
"""Handles the personality and greetings for CosmicCat"""
def __init__(self):
self.space_greetings = [
"Purr... Welcome to the cosmos, traveler! 🐱✨",
"Meow! Ready to explore the universe of possibilities? 🌌",
"Greetings from the space station! Let's dive into cosmic wisdom! πŸš€",
"Paws and reflect... What stellar insights shall we uncover today? ⭐",
"Telepathic meow! I sense you're seeking cosmic guidance! 🌠"
]
self.standard_greetings = [
"Hello! I'm your AI Life Coach. How can I assist you today?",
"Welcome! I'm here to help with your personal development journey.",
"Hi there! What would you like to focus on today?",
"Greetings! Let's work together to achieve your goals.",
"Good to see you! How can I support your growth today?"
]
self.space_stories = [
"In the depths of Andromeda, a cybernetic cat discovered the secret of quantum purring, bending reality with each harmonic vibration.",
"A space-faring kitten once navigated through a black hole and emerged in a parallel dimension where all cats rule supreme.",
"Legend tells of a cosmic cat whose whiskers could map the entire galaxy, guiding lost spacecraft back to their home worlds.",
"On the rings of Saturn, a wise feline meditated for eons, learning to communicate through the subtle frequencies of celestial bodies.",
"A brave kitten once rode a comet through the Milky Way, collecting stardust to weave dreams for sleeping planets."
]
self.initializing_messages = [
"Charging my quantum paws... 🐾⚑",
"Aligning my cosmic whiskers... 🌌",
"Calibrating interstellar sensors... πŸ›°οΈ",
"Warming up my thought engines... πŸš€",
"Syncing with the galactic mainframe... 🌠",
"Boosting signal from deep space... πŸ“‘",
"Powering up my neural net... πŸ’«"
]
def get_greeting(self, cosmic_mode: bool = True) -> str:
"""Get a personalized greeting based on mode"""
hour = datetime.now().hour
if 5 <= hour < 12:
time_greeting = "Good morning"
elif 12 <= hour < 17:
time_greeting = "Good afternoon"
elif 17 <= hour < 21:
time_greeting = "Good evening"
else:
time_greeting = "Hello"
if cosmic_mode:
space_greeting = random.choice(self.space_greetings)
return f"{time_greeting}, space traveler! 🐱✨\n\n{space_greeting}"
else:
standard_greeting = random.choice(self.standard_greetings)
return f"{time_greeting}! πŸ‘‹\n\n{standard_greeting}"
def get_space_story(self) -> str:
"""Get a random space cat story"""
return random.choice(self.space_stories)
def get_initializing_message(self) -> str:
"""Get a random initialization message"""
return random.choice(self.initializing_messages)
# Global instance
personality = CosmicCatPersonality()