Skip to content

Commit

Permalink
fix: Chat Slash Command (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenixpereira authored Oct 6, 2024
1 parent 36aea0e commit 4a27dee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,10 @@ async def chat(interaction: Interaction, query: str | None, file: Attachment | N
await interaction.response.defer()
query = "" if query == None else query
bot_response = await client.gemini_model.query(
message=query, attachment=file, author=interaction.user.display_name
message=query,
attachment=file,
author=interaction.user.display_name,
author_id=interaction.user.id,
)
await interaction.followup.send(embeds=bot_response)

Expand Down

0 comments on commit 4a27dee

Please sign in to comment.