Clearer / fixed typo in set prefix docstring

This commit is contained in:
Twentysix 2016-08-17 15:22:01 +02:00
parent 639962ec01
commit 4b453ef22f
2 changed files with 8 additions and 7 deletions

View File

@ -225,15 +225,16 @@ class Owner:
args=(ctx.message.author,))
t.start()
@_set.command()
@_set.command(pass_context=True)
@checks.is_owner()
async def prefix(self, *prefixes):
"""Sets prefixes
async def prefix(self, ctx, *prefixes):
"""Sets Red's prefixes
Must be separated by a space. Enclose in double
quotes if a prefix contains spaces."""
Accepts multiple prefixes separated by a space. Enclose in double
quotes if a prefix contains spaces.
Example: set prefix ! $ ? "two words" """
if prefixes == ():
await self.bot.say("Example: setprefix [ ! ^ .")
await send_cmd_help(ctx)
return
self.bot.command_prefix = sorted(prefixes, reverse=True)

View File

@ -73,7 +73,7 @@ class Streams:
async def streamalert(self, ctx):
"""Adds/removes stream alerts from the current channel"""
if ctx.invoked_subcommand is None:
await self.bot.say("Type help streamalert for info.")
await send_cmd_help(ctx)
@streamalert.command(name="twitch", pass_context=True)
async def twitch_alert(self, ctx, stream: str):