Spaces:
Running
Running
Fixed commands named error
Browse files- discord_bot.py +2 -2
discord_bot.py
CHANGED
@@ -24,7 +24,7 @@ async def hello(interaction: discord.Interaction):
|
|
24 |
async def greet(interaction: discord.Interaction, name: str):
|
25 |
await interaction.response.send_message(f"Hello, {name}!")
|
26 |
|
27 |
-
@tree.command(name="get
|
28 |
async def getKudos(interaction: discord.Interaction):
|
29 |
details = horde.getUserDetails()
|
30 |
if "kudos" not in details:
|
@@ -32,7 +32,7 @@ async def getKudos(interaction: discord.Interaction):
|
|
32 |
return
|
33 |
await interaction.response.send_message(f'The amount of Kudos this user has is {details["kudos"]}')
|
34 |
|
35 |
-
@tree.command(name="generate
|
36 |
async def generateStatus(interaction: discord.Interaction, id: str):
|
37 |
details = horde.generateCheck(id)
|
38 |
if "kudos" not in details:
|
|
|
24 |
async def greet(interaction: discord.Interaction, name: str):
|
25 |
await interaction.response.send_message(f"Hello, {name}!")
|
26 |
|
27 |
+
@tree.command(name="get-kudos", description="The amount of Kudos this user has.")
|
28 |
async def getKudos(interaction: discord.Interaction):
|
29 |
details = horde.getUserDetails()
|
30 |
if "kudos" not in details:
|
|
|
32 |
return
|
33 |
await interaction.response.send_message(f'The amount of Kudos this user has is {details["kudos"]}')
|
34 |
|
35 |
+
@tree.command(name="generate-status", description="Retrieve the status of an Asynchronous generation request.")
|
36 |
async def generateStatus(interaction: discord.Interaction, id: str):
|
37 |
details = horde.generateCheck(id)
|
38 |
if "kudos" not in details:
|