v0.2 #1
2 changed files with 7 additions and 4 deletions
|
|
@ -7,7 +7,7 @@ A search engine in your discord client.
|
||||||
- [X] Command exec
|
- [X] Command exec
|
||||||
- [X] Image & PDF recognitiion
|
- [X] Image & PDF recognitiion
|
||||||
- [X] System Prompt & Safety
|
- [X] System Prompt & Safety
|
||||||
- [ ] Ephermal
|
- [X] Ephemeral
|
||||||
- [ ] Research
|
- [ ] Research
|
||||||
- [ ] VC capabilities (difficult af to implement)
|
- [ ] VC capabilities (difficult af to implement)
|
||||||
- [ ] ~~Image creation~~ (thrown out due to payment requirements)
|
- [ ] Image creation
|
||||||
|
|
|
||||||
5
main.py
5
main.py
|
|
@ -66,8 +66,11 @@ async def generation(interaction: discord.Interaction) -> None:
|
||||||
@bot.tree.command(name="ask", description="ai thing yes 👍")
|
@bot.tree.command(name="ask", description="ai thing yes 👍")
|
||||||
@app_commands.allowed_installs(guilds=False, users=True)
|
@app_commands.allowed_installs(guilds=False, users=True)
|
||||||
@app_commands.allowed_contexts(guilds=True, dms=True, private_channels=True)
|
@app_commands.allowed_contexts(guilds=True, dms=True, private_channels=True)
|
||||||
async def ask(interaction: discord.Interaction, prompt: str, attachment: Optional[discord.Attachment]) -> None:
|
async def ask(interaction: discord.Interaction, prompt: str, attachment: Optional[discord.Attachment], ephemeral: bool) -> None:
|
||||||
|
if not ephemeral:
|
||||||
await interaction.response.defer()
|
await interaction.response.defer()
|
||||||
|
else:
|
||||||
|
await interaction.response.defer(ephemeral=True)
|
||||||
|
|
||||||
attachment_text: str | None = None
|
attachment_text: str | None = None
|
||||||
attachment_data: bytes | None = None
|
attachment_data: bytes | None = None
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue