Update the help setup command.
This commit is contained in:
+12
-22
@@ -1,29 +1,21 @@
|
|||||||
"""
|
"""Commands for helping a user."""
|
||||||
Commands for helping a user.
|
|
||||||
"""
|
|
||||||
|
|
||||||
import nextcord
|
import nextcord
|
||||||
from nextcord.ext import commands
|
from nextcord.ext import commands
|
||||||
|
|
||||||
|
|
||||||
class HelpCog(commands.Cog, name="Help commands."):
|
class HelpCog(commands.Cog, name="Help commands."):
|
||||||
"""
|
"""Class holds commands for getting help."""
|
||||||
Class holds commands for getting help.
|
|
||||||
"""
|
|
||||||
|
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
"""
|
"""Default constructor for HelpCog class. Does nothing."""
|
||||||
Default constructor for HelpCog class. Does nothing.
|
|
||||||
"""
|
|
||||||
|
|
||||||
@nextcord.slash_command()
|
@nextcord.slash_command()
|
||||||
async def help(self, interaction: nextcord.Interaction):
|
async def help(self, interaction: nextcord.Interaction):
|
||||||
"""
|
"""Parent slash command for help. Never called."""
|
||||||
Parent slash command for help. Never called.
|
|
||||||
"""
|
|
||||||
|
|
||||||
@help.subcommand(description="Describes how to get started with Agon.")
|
@help.subcommand(description="Describes how to get started with Agon.")
|
||||||
async def setup(self, interaction: nextcord.Interaction):
|
async def setup(self, interaction: nextcord.Interaction) -> None:
|
||||||
"""
|
"""
|
||||||
Sends a message describing how to get started with Agon.
|
Sends a message describing how to get started with Agon.
|
||||||
|
|
||||||
@@ -31,15 +23,13 @@ class HelpCog(commands.Cog, name="Help commands."):
|
|||||||
interaction (nextcord.Interaction): Interaction that invoked the command.
|
interaction (nextcord.Interaction): Interaction that invoked the command.
|
||||||
"""
|
"""
|
||||||
# I hate this but don't want indents in the string.
|
# I hate this but don't want indents in the string.
|
||||||
# pylint: disable=line-too-long
|
|
||||||
help_str: str = """Welcome to Agon! Three simple steps are needed to get started.
|
|
||||||
1.) Set a channel to recieve submission verifications with "/set verify_channel."
|
|
||||||
This channel is used to allow moderators to check if a submission is real/valid.
|
|
||||||
|
|
||||||
2.) Set a channel for submissions to be posted in with "/set submission_channel."
|
help_str: str = "Welcome to Agon! Three simple steps are needed to get started."
|
||||||
This channel will be where all user submission messages are sent.
|
help_str += '1.) Set a channel to receive submission verifications with "/set verify_channel."\n'
|
||||||
|
help_str += "This channel is used to allow moderators to check if a submission is real/valid.\n\n"
|
||||||
3.) Set up your highscore tables! Use "/create group" to first create a group message in the channel you would like and then use "/create category" to create a category in that group message!"""
|
help_str += '2.) Set up your highscore tables! Use "/create group" to first create a group message in the'
|
||||||
# pylint: enable=line-too-long
|
help_str += 'channel you would like and then use "/create category" to create a category in that group message!'
|
||||||
|
help_str += "\n\n"
|
||||||
|
help_str += '3.) Users can then submit scores with the "/submit" command.'
|
||||||
|
|
||||||
await interaction.response.send_message(content=help_str)
|
await interaction.response.send_message(content=help_str)
|
||||||
|
|||||||
Reference in New Issue
Block a user