Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -18,12 +18,9 @@ tree = app_commands.CommandTree(client)
|
|
18 |
if not DISCORD_BOT_TOKEN or not GEMINI_API_KEY:
|
19 |
raise ValueError("Both DISCORD_BOT_TOKEN and GEMINI_API_KEY must be set.")
|
20 |
|
21 |
-
@tree.command(name="hello",description="
|
22 |
-
async def
|
23 |
-
interaction
|
24 |
-
input:str,
|
25 |
-
):
|
26 |
-
await interaction.followup.send(content=f"Hello there, I'm imagen 3!")
|
27 |
|
28 |
@tree.command(name="imagen3", description="Generates iamge(s) using imagen3 model")
|
29 |
@app_commands.choices(
|
|
|
18 |
if not DISCORD_BOT_TOKEN or not GEMINI_API_KEY:
|
19 |
raise ValueError("Both DISCORD_BOT_TOKEN and GEMINI_API_KEY must be set.")
|
20 |
|
21 |
+
@tree.command(name="hello", description="Says hello!")
|
22 |
+
async def hello_command(interaction):
|
23 |
+
await interaction.response.send_message("Hello there!")
|
|
|
|
|
|
|
24 |
|
25 |
@tree.command(name="imagen3", description="Generates iamge(s) using imagen3 model")
|
26 |
@app_commands.choices(
|