Skip to content

Commit 14d888e

Browse files
AmbratolmAmbratolm
authored andcommitted
AI: Replaced name w/ mention in member prompt data.
1 parent b56c9c7 commit 14d888e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bot/cogs/chat_cogs/ai_cog.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ async def create_prompt(
423423
) -> tuple[str, ActFile | None]:
424424
"""
425425
Create prompt with flexible input options.
426-
- Text prompt structure: '{**preface**}\\n{**message.author.name**}:{file_action_desc}{**message.content**}\\n{**csv**}'
426+
- Text prompt structure: '{**preface**}\\n{**message.author.mention**}:{file_action_desc}{**message.content**}\\n{**csv**}'
427427
428428
Args:
429429
message: Message object (contains **message.author**, and **message.guild**).
@@ -455,7 +455,7 @@ async def create_prompt(
455455
# Process file attachments if message is provided
456456
if message:
457457
# Add author
458-
text += f"{message.author.name}:"
458+
text += f"{message.author.mention}:"
459459

460460
# Check for stickers first
461461
if message.stickers:
@@ -544,7 +544,7 @@ async def create_prompt_reply_preface(self, message: Message | None) -> str:
544544
)
545545
if referenced_message.author != self.bot.user:
546546
preface += (
547-
f"[Context: {message.author.name} was replying to {referenced_message.author.name} "
547+
f"[Context: {message.author.mention} was replying to {referenced_message.author.mention} "
548548
f"who said: '{referenced_message.content}']"
549549
)
550550
else:

0 commit comments

Comments
 (0)