Editing information that would be posted from help command.
This commit is contained in:
@@ -10,7 +10,7 @@ from utils import highscore_message # pylint: disable=import-error
|
|||||||
|
|
||||||
|
|
||||||
class PostHighscores(commands.Cog, name="Post Highscores"):
|
class PostHighscores(commands.Cog, name="Post Highscores"):
|
||||||
"""Actions of bot command"""
|
"""Posts Highscores."""
|
||||||
|
|
||||||
def __init__(self, bot: commands.Bot):
|
def __init__(self, bot: commands.Bot):
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
@@ -18,8 +18,8 @@ class PostHighscores(commands.Cog, name="Post Highscores"):
|
|||||||
@commands.command(name="post-scores")
|
@commands.command(name="post-scores")
|
||||||
async def post_highscores(self, ctx: commands.Context):
|
async def post_highscores(self, ctx: commands.Context):
|
||||||
"""
|
"""
|
||||||
A command which posts the highscore in the designated channel. Sends warning if no channel
|
A command which posts the highscore in the designated channel.
|
||||||
has been registered.
|
Sends warning if no channel has been registered.
|
||||||
Usage:
|
Usage:
|
||||||
```
|
```
|
||||||
?post-scores
|
?post-scores
|
||||||
|
|||||||
@@ -8,14 +8,14 @@ from utils import data_storage # pylint: disable=import-error
|
|||||||
|
|
||||||
|
|
||||||
class RegisterHighscoreChannel(commands.Cog, name="Register HighScore Channel"):
|
class RegisterHighscoreChannel(commands.Cog, name="Register HighScore Channel"):
|
||||||
"""Actions of bot command"""
|
"""Registers Highscore channel"""
|
||||||
|
|
||||||
def __init__(self, bot: commands.Bot):
|
def __init__(self, bot: commands.Bot):
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
|
|
||||||
@commands.command(name="register")
|
@commands.command(name="register")
|
||||||
async def register_highscores(self, ctx: commands.Context):
|
async def register_highscores(self, ctx: commands.Context):
|
||||||
"""A command which registers the channel command is sent in as channel to post highscores in
|
"""A command which registers the channel command is sent in as channel to post highscores in.
|
||||||
Usage:
|
Usage:
|
||||||
```
|
```
|
||||||
?register (in channel to post highscores in)
|
?register (in channel to post highscores in)
|
||||||
|
|||||||
@@ -9,15 +9,15 @@ from utils import highscore_manage # pylint: disable=import-error
|
|||||||
|
|
||||||
|
|
||||||
class RegisterHighscoreChannel(commands.Cog, name="Score"):
|
class RegisterHighscoreChannel(commands.Cog, name="Score"):
|
||||||
"""Actions of bot command"""
|
"""Submits a score."""
|
||||||
|
|
||||||
def __init__(self, bot: commands.Bot):
|
def __init__(self, bot: commands.Bot):
|
||||||
self.bot = bot
|
self.bot = bot
|
||||||
|
|
||||||
@commands.command(name="score")
|
@commands.command(name="score")
|
||||||
async def score(self, ctx: commands.Context, boss_name: str, category: str, score: str):
|
async def score(self, ctx: commands.Context, boss_name: str, category: str, score: str):
|
||||||
"""A command which calls a function to submit the score to highscores. Gathers required
|
"""A command which calls a function to submit the score to highscores.
|
||||||
information from command and passes on.
|
Gathers required information from command and passes on.
|
||||||
Usage:
|
Usage:
|
||||||
```
|
```
|
||||||
?score "Boss Name" "Category" "score"
|
?score "Boss Name" "Category" "score"
|
||||||
|
|||||||
Reference in New Issue
Block a user