clean docstrings for commands, resolves #1
This commit is contained in:
@ -20,12 +20,6 @@ class Owner(commands.Cog):
|
||||
async def temperature(self, ctx, temp: Optional[int|str] = None) -> None:
|
||||
"""
|
||||
Set Temperature
|
||||
|
||||
Args:
|
||||
ctx (Any): Discord context
|
||||
temperature (Optional[int|str]): New temperature
|
||||
Returns:
|
||||
None
|
||||
"""
|
||||
if not temp:
|
||||
return await ctx.respond(f"The current temperature is: {self._temperature} °C")
|
||||
@ -52,11 +46,6 @@ class Owner(commands.Cog):
|
||||
) -> None:
|
||||
"""
|
||||
Edit a message previously sent by the bot
|
||||
|
||||
Args:
|
||||
ctx (Any): Discord context
|
||||
msgid (str): Should be an int, the message id to edit
|
||||
newcontent (str): Content to replace message with
|
||||
"""
|
||||
|
||||
try:
|
||||
@ -76,11 +65,6 @@ class Owner(commands.Cog):
|
||||
async def reload(self, ctx) -> None:
|
||||
"""
|
||||
Reload Cogs
|
||||
|
||||
Args:
|
||||
ctx (Any): Discord context
|
||||
Returns:
|
||||
None
|
||||
"""
|
||||
|
||||
self.bot.load_exts(False)
|
||||
@ -93,12 +77,6 @@ class Owner(commands.Cog):
|
||||
parameters: str) -> None:
|
||||
"""
|
||||
Make me say something in a channel
|
||||
|
||||
Args:
|
||||
ctx (Any): Discord context
|
||||
parameters (str): Channel <space> Message
|
||||
Returns:
|
||||
None
|
||||
"""
|
||||
_parameters: list[str] = parameters.split(" ")
|
||||
|
||||
@ -120,12 +98,6 @@ class Owner(commands.Cog):
|
||||
status: Optional[str] = None) -> None:
|
||||
"""
|
||||
Change bots status
|
||||
|
||||
Args:
|
||||
ctx (Any): Discord context
|
||||
status (Optional[str]): The new status to set
|
||||
Returns:
|
||||
None
|
||||
"""
|
||||
if not status:
|
||||
return await ctx.respond("ERR: No status provided to change to!",
|
||||
|
Reference in New Issue
Block a user