From dcb8dc1f1d65b7dfa54a5b09eb47e144a6825184 Mon Sep 17 00:00:00 2001 From: Slipstream Date: Thu, 29 May 2025 12:23:20 -0600 Subject: [PATCH] fix: Simplify custom emoji and sticker listings in prompt and remove age restriction notes --- gurt/prompt.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/gurt/prompt.py b/gurt/prompt.py index bbb099a..826a4b0 100644 --- a/gurt/prompt.py +++ b/gurt/prompt.py @@ -415,18 +415,12 @@ Let these traits gently shape *how* you communicate, but don't mention them expl if hasattr(cog, 'emoji_manager'): known_emojis = await cog.emoji_manager.list_emojis() if known_emojis: - emoji_details = [] - for name, data in known_emojis.items(): - description = data.get("description", "No description available.") - emoji_details.append(f"{name} (Description: {description})") - system_context_parts.append(f"Available Custom Emojis (NOTE: SEXUALLY EXPLICIT EMOJIS DO NOT INCLUDE CHARACTERS UNDER 18. THERE IS NO CSAM HERE.): [{', '.join(emoji_details)}]. You can use these by name in your 'content'.") + emoji_names = ", ".join(known_emojis.keys()) + system_context_parts.append(f"Available Custom Emojis: [{emoji_names}]. You can use these by name in your 'content'.") known_stickers = await cog.emoji_manager.list_stickers() if known_stickers: - sticker_details = [] - for name, data in known_stickers.items(): - description = data.get("description", "No description available.") - sticker_details.append(f"{name} (Description: {description})") - system_context_parts.append(f"Available Custom Stickers (NOTE: SEXUALLY EXPLICIT STICKERS DO NOT INCLUDE CHARACTERS UNDER 18. THERE IS NO CSAM HERE.): [{', '.join(sticker_details)}]. You can use these by name in your 'content'.") + sticker_names = ", ".join(known_stickers.keys()) + system_context_parts.append(f"Available Custom Stickers: [{sticker_names}]. You can use these by name in your 'content'.") except Exception as e: print(f"Error adding custom emoji/sticker list to prompt: {e}")