From 0ff4da00506c047da90e303e090ba6e7bab3ef22 Mon Sep 17 00:00:00 2001 From: bobloy Date: Wed, 30 Dec 2020 11:21:08 -0500 Subject: [PATCH] tagline and contact --- redbot/core/core_commands.py | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/redbot/core/core_commands.py b/redbot/core/core_commands.py index aee281c64..9edce5ba8 100644 --- a/redbot/core/core_commands.py +++ b/redbot/core/core_commands.py @@ -2955,8 +2955,16 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic): """ Set the tagline to be used. - This setting only applies to embedded help. If no tagline is - specified, the default will be used instead. + The maximum tagline length is 2048 characters. + This setting only applies to embedded help. If no tagline is specified, the default will be used instead. + + Examples: + - `[p]helpset tagline Thanks for using the bot!` + - `[p]helpset tagline` - Resets the tagline to the default. + + **Arguments:** + + - `[tagline]` The tagline to appear at the bottom of help embeds. Leave blank to reset. """ if tagline is None: await ctx.bot._config.help.tagline.set("") @@ -2977,7 +2985,17 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic): @commands.command(cooldown_after_parsing=True) @commands.cooldown(1, 60, commands.BucketType.user) async def contact(self, ctx: commands.Context, *, message: str): - """Sends a message to the owner.""" + """Sends a message to the owner. + + This is limited to one message every 60 seconds per person. + + Examples: + - `[p]contact Help! The bot has become sentient!` + + **Arguments:** + + - `[tagline]` The tagline to appear at the bottom of help embeds. Leave blank to reset. + """ guild = ctx.message.guild author = ctx.message.author footer = _("User ID: {}").format(author.id)