Skip to content

Commit

Permalink
fix(chat): Remove @DuckBot in response (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
unglinh279 authored Nov 10, 2024
1 parent 602831f commit 6ac3314
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,9 @@ async def on_message(message: Message):
bot_response = await client.gemini_model.query(
author_id=message.author.id,
author=message.author.display_name,
message=message.clean_content.replace("d.chat", ""),
message=message.content.replace("d.chat", "")
.replace(f"<@{client.user.id}>", "")
.strip(),
attachment=attachment,
)
await message.reply(embeds=bot_response, mention_author=False)
Expand Down

0 comments on commit 6ac3314

Please sign in to comment.