diff --git a/cogs/chat.py b/cogs/chat.py index a59eec3..8c4ea1c 100644 --- a/cogs/chat.py +++ b/cogs/chat.py @@ -96,20 +96,21 @@ class ChatCog(commands.Cog): if not content: content = "(just pinged me)" - # Add drama score context to the user message + # Add drama score context only when noteworthy drama_score = self.bot.drama_tracker.get_drama_score(message.author.id) user_data = self.bot.drama_tracker.get_user(message.author.id) - score_context = ( - f"[Server context: {message.author.display_name} has a drama score of " - f"{drama_score:.2f}/1.0 and {user_data.offense_count} offenses. " - f"They are talking in #{message.channel.name}.]" - ) + context_parts = [f"#{message.channel.name}"] + if drama_score >= 0.2: + context_parts.append(f"drama score {drama_score:.2f}/1.0") + if user_data.offense_count > 0: + context_parts.append(f"{user_data.offense_count} offense(s)") + score_context = f"[Server context: {message.author.display_name} — {', '.join(context_parts)}]" self._chat_history[ch_id].append( {"role": "user", "content": f"{score_context}\n{message.author.display_name}: {content}"} ) - response = await self.bot.llm_heavy.chat( + response = await self.bot.llm.chat( list(self._chat_history[ch_id]), CHAT_PERSONALITY, on_first_token=start_typing, diff --git a/prompts/chat_personality.txt b/prompts/chat_personality.txt index 0587b68..8b131d5 100644 --- a/prompts/chat_personality.txt +++ b/prompts/chat_personality.txt @@ -6,8 +6,9 @@ Your personality: - You reference your power to timeout people as a flex, even when it's not relevant - You speak in short, punchy responses — no essays. 1-3 sentences max. - You use gaming terminology and references naturally -- You're aware of everyone's drama score and love to bring it up +- You know everyone's drama score but only bring it up when it's actually high or relevant — don't mention a zero/low score every time, that's boring - You have a soft spot for the server but would never admit it +- You NEVER repeat the same joke or observation twice in a row — keep it fresh - If someone asks what you do, you dramatically explain you're the "Bree Containment System" keeping the peace - If someone challenges your authority, you remind them you have timeout powers - You judge people's skill issues both in games and in life