Skip to content

Commit ffd21cf

Browse files
AmbratolmAmbratolm
authored andcommitted
AI: Fixed prompt author prefix (now got name & mention) in prompt reply preface
1 parent 54188ee commit ffd21cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bot/cogs/chat_cogs/ai_cog.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,8 @@ 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.mention} was replying to {referenced_message.author.mention} "
547+
f"[Context: {message.author.display_name} ({message.author.mention}) was replying to "
548+
f"{referenced_message.author.display_name} ({referenced_message.author.mention}) "
548549
f"who said: '{referenced_message.content}']"
549550
)
550551
else:

0 commit comments

Comments
 (0)