Skip to content

Commit

Permalink
Change command prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenixpereira committed Sep 20, 2024
1 parent 604f397 commit 2e27608
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,13 @@ async def help(interaction: Interaction):
@client.event
async def on_message(message: Message):
if (
client.user.mentioned_in(message) or "d." in message.clean_content
client.user.mentioned_in(message) or "d.chat" in message.clean_content
) and message.author != client.user:
attachment = message.attachments[0] if message.attachments else None

bot_response = await client.gemini_model.query(
author=message.author.display_name,
message=message.clean_content.replace("d.", ""),
message=message.clean_content.replace("d.chat", ""),
attachment=attachment,
)
await message.reply(embeds=bot_response, mention_author=False)
Expand Down

0 comments on commit 2e27608

Please sign in to comment.