From 4b453ef22fd792e42b3d4530ccfc0726a73f79f6 Mon Sep 17 00:00:00 2001 From: Twentysix Date: Wed, 17 Aug 2016 15:22:01 +0200 Subject: [PATCH] Clearer / fixed typo in `set prefix` docstring --- cogs/owner.py | 13 +++++++------ cogs/streams.py | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/cogs/owner.py b/cogs/owner.py index 34b5dd500..4525820b9 100644 --- a/cogs/owner.py +++ b/cogs/owner.py @@ -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) diff --git a/cogs/streams.py b/cogs/streams.py index 32ce28317..237c8d7f4 100644 --- a/cogs/streams.py +++ b/cogs/streams.py @@ -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):