artintel235 commited on
Commit
778ded8
·
verified ·
1 Parent(s): 82cbcb0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
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="says hello")
22
- async def say_hello(
23
- interaction:discord.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(