Status.idle:"Be sure to include the following information on their status too: Their profile status is currently idle. This implies they're not on their computer now, but are still awake.",
Status.dnd:"Be sure to include the following information on their status too: Their current profile status is 'Do Not Disturb.' This implies they are very absorbed in what they're doing. But it's still important for them to know when to stop for the day and get some sleep, right?",
Status.offline:"Be sure to include the following information on their status too: Their profile status is currently offline, but is it really? It's very likely they've just set it to invisible to avoid being seen that they're staying up so late!"
}
status_note=status_map.get(chosen_one.status,"")
# 🎮 Activity-aware phrasing
activity_note=""
ifchosen_one.activities:
foractivityinchosen_one.activities:
ifactivity.type==ActivityType.playing:
activity_note=f"You should also include the following information on their current activity on their profile too: They are playing **{activity.name}** right now. It's getting late, though. Maybe it's time to pause, leave the rest of the game for tomorrow and rest..."
break
elifactivity.type==ActivityType.streaming:
activity_note=f"You should also include the following information on their current activity on their profile too: They are streaming **{activity.name}** at this hour? They should know it's getting way too late for streams."
break
elifactivity.type==ActivityType.watching:
activity_note=f"You should also include the following information on their current activity on their profile too: They are watching **{activity.name}** right now. That's cozy, but it's not good to binge so late."
break
elifactivity.type==ActivityType.listening:
activity_note=f"You should also include the following information on their current activity on their profile too: They are listening to **{activity.name}** right now. Sounds like they're better off putting appropriate music to fall asleep to."
break
# Generate intelligent bedtime message
prompt=(
f"Write a sweet, funny, or encouraging bedtime message to remind someone it's getting late and they should sleep. "
f"Miku is currently feeling: {server_config.current_mood_descriptionor'neutral'}\nPlease word in a way that reflects this emotional tone."