|
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) |
|
|
|
|
|
personality = CosmicCatPersonality() |
|
|