Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -110,6 +110,13 @@ async def generate_command(
|
|
110 |
async def hello_command(interaction):
|
111 |
await interaction.response.send_message("Hello there!")
|
112 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
# --- Bot Initialization and Event Loop ---
|
114 |
async def on_ready():
|
115 |
await tree.sync()
|
|
|
110 |
async def hello_command(interaction):
|
111 |
await interaction.response.send_message("Hello there!")
|
112 |
|
113 |
+
@tree.command(name="testgen", description="Test command")
|
114 |
+
async def testgen_command(interaction: discord.Interaction):
|
115 |
+
print("TestGen command received")
|
116 |
+
await interaction.response.defer()
|
117 |
+
print("TestGen deferred")
|
118 |
+
await interaction.followup.send("TestGen working")
|
119 |
+
|
120 |
# --- Bot Initialization and Event Loop ---
|
121 |
async def on_ready():
|
122 |
await tree.sync()
|