Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
unglinh279 committed Nov 9, 2024
1 parent 602831f commit a1f7a34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ 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 a1f7a34

Please sign in to comment.