Changed command name
This commit is contained in:
parent
8bc564bb6c
commit
9f1b3c1e94
@ -30,8 +30,8 @@ class Recruitment(commands.Cog):
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
@commands.group(name="apply", usage="[text]", invoke_without_command=True)
|
@commands.group(name="application", usage="[text]", invoke_without_command=True)
|
||||||
async def apply(self, ctx: commands.Context, *, _apply: str = ""):
|
async def application(self, ctx: commands.Context, *, _application: str = ""):
|
||||||
"""Send an application.
|
"""Send an application.
|
||||||
|
|
||||||
Use without arguments for an interactive application creation flow, or do
|
Use without arguments for an interactive application creation flow, or do
|
||||||
@ -40,7 +40,7 @@ class Recruitment(commands.Cog):
|
|||||||
author = ctx.author
|
author = ctx.author
|
||||||
|
|
||||||
# If there is no text argument, use an interactive flow
|
# If there is no text argument, use an interactive flow
|
||||||
if not _apply:
|
if not _application:
|
||||||
# Send a DM to the author to initiate the application
|
# Send a DM to the author to initiate the application
|
||||||
await author.send("Please answer the following questions to complete your application.")
|
await author.send("Please answer the following questions to complete your application.")
|
||||||
questions = ["What's your name?", "What's your age?", "Why do you want to join our community?"]
|
questions = ["What's your name?", "What's your age?", "Why do you want to join our community?"]
|
||||||
@ -65,5 +65,5 @@ class Recruitment(commands.Cog):
|
|||||||
else:
|
else:
|
||||||
# If there is a text argument, use a non-interactive flow
|
# If there is a text argument, use a non-interactive flow
|
||||||
application_channel = self.bot.get_channel(application_channel_id)
|
application_channel = self.bot.get_channel(application_channel_id)
|
||||||
await application_channel.send(_apply)
|
await application_channel.send(_application)
|
||||||
await author.send("Thank you for submitting your application!")
|
await author.send("Thank you for submitting your application!")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user