artintel235 commited on
Commit
d7eef58
·
verified ·
1 Parent(s): bb04558

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -54,6 +54,12 @@ async def generate_command(
54
  # Send images to Discord
55
  await interaction.followup.send(content=f"Here are your {img_count} images for prompt: `{prompt}`", files=files)
56
 
 
 
 
 
 
 
57
 
58
  # --- Gradio Interface ---
59
  def echo_text(text):
 
54
  # Send images to Discord
55
  await interaction.followup.send(content=f"Here are your {img_count} images for prompt: `{prompt}`", files=files)
56
 
57
+ async def on_ready():
58
+ await tree.sync()
59
+ print("Bot is ready!")
60
+
61
+
62
+ client.event(on_ready)
63
 
64
  # --- Gradio Interface ---
65
  def echo_text(text):