mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
Clearer / fixed typo in set prefix docstring
This commit is contained in:
parent
639962ec01
commit
4b453ef22f
@ -225,15 +225,16 @@ class Owner:
|
|||||||
args=(ctx.message.author,))
|
args=(ctx.message.author,))
|
||||||
t.start()
|
t.start()
|
||||||
|
|
||||||
@_set.command()
|
@_set.command(pass_context=True)
|
||||||
@checks.is_owner()
|
@checks.is_owner()
|
||||||
async def prefix(self, *prefixes):
|
async def prefix(self, ctx, *prefixes):
|
||||||
"""Sets prefixes
|
"""Sets Red's prefixes
|
||||||
|
|
||||||
Must be separated by a space. Enclose in double
|
Accepts multiple prefixes separated by a space. Enclose in double
|
||||||
quotes if a prefix contains spaces."""
|
quotes if a prefix contains spaces.
|
||||||
|
Example: set prefix ! $ ? "two words" """
|
||||||
if prefixes == ():
|
if prefixes == ():
|
||||||
await self.bot.say("Example: setprefix [ ! ^ .")
|
await send_cmd_help(ctx)
|
||||||
return
|
return
|
||||||
|
|
||||||
self.bot.command_prefix = sorted(prefixes, reverse=True)
|
self.bot.command_prefix = sorted(prefixes, reverse=True)
|
||||||
|
|||||||
@ -73,7 +73,7 @@ class Streams:
|
|||||||
async def streamalert(self, ctx):
|
async def streamalert(self, ctx):
|
||||||
"""Adds/removes stream alerts from the current channel"""
|
"""Adds/removes stream alerts from the current channel"""
|
||||||
if ctx.invoked_subcommand is None:
|
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)
|
@streamalert.command(name="twitch", pass_context=True)
|
||||||
async def twitch_alert(self, ctx, stream: str):
|
async def twitch_alert(self, ctx, stream: str):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user