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)
|
||||
async def apply(self, ctx: commands.Context, *, _apply: str = ""):
|
||||
@commands.group(name="application", usage="[text]", invoke_without_command=True)
|
||||
async def application(self, ctx: commands.Context, *, _application: str = ""):
|
||||
"""Send an application.
|
||||
|
||||
Use without arguments for an interactive application creation flow, or do
|
||||
@ -40,7 +40,7 @@ class Recruitment(commands.Cog):
|
||||
author = ctx.author
|
||||
|
||||
# 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
|
||||
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?"]
|
||||
@ -65,5 +65,5 @@ class Recruitment(commands.Cog):
|
||||
else:
|
||||
# If there is a text argument, use a non-interactive flow
|
||||
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!")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user