From 185b607544fb3b3e8cd5863a954715e41c7977d4 Mon Sep 17 00:00:00 2001 From: Kreusada Ignad Amredes <67752638+Kreusada@users.noreply.github.com> Date: Mon, 26 Feb 2024 23:09:36 +0000 Subject: [PATCH 1/2] Fix markdown formatting in `[p]streamalert list` (#6292) --- redbot/cogs/streams/streams.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/redbot/cogs/streams/streams.py b/redbot/cogs/streams/streams.py index 60ceb619d41..54e32f6ec11 100644 --- a/redbot/cogs/streams/streams.py +++ b/redbot/cogs/streams/streams.py @@ -418,10 +418,10 @@ async def streamalert_list(self, ctx: commands.Context): return for channel_id, stream_platform in streams_list.items(): - msg += f"** - #{ctx.guild.get_channel(channel_id)}**\n" + msg += f"- {ctx.guild.get_channel(channel_id).mention}\n" for platform, streams in stream_platform.items(): - msg += f"\t** - {platform}**\n" - msg += f"\t\t{humanize_list(streams)}\n" + msg += f" - **{platform}**\n" + msg += f" {humanize_list(streams)}\n" for page in pagify(msg): await ctx.send(page) From 9345b691b3258ef7d2aec88a43e23c01529cdb9b Mon Sep 17 00:00:00 2001 From: Jakub Kuczys Date: Tue, 27 Feb 2024 00:15:07 +0100 Subject: [PATCH 2/2] Ask for confirmation before setting prefix on first-time setup (#6287) Co-authored-by: Michael Oliveira <34169552+Flame442@users.noreply.github.com> --- redbot/core/_cli.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/redbot/core/_cli.py b/redbot/core/_cli.py index bc263713f73..b8dbc65e492 100644 --- a/redbot/core/_cli.py +++ b/redbot/core/_cli.py @@ -80,7 +80,7 @@ async def interactive_config(red, token_set, prefix_set, *, print_header=True): print( "\nPick a prefix. A prefix is what you type before a " "command. Example:\n" - "!help\n^ The exclamation mark is the prefix in this case.\n" + "!help\n^ The exclamation mark (!) is the prefix in this case.\n" "The prefix can be multiple characters. You will be able to change it " "later and add more of them.\nChoose your prefix:\n" ) @@ -94,6 +94,12 @@ async def interactive_config(red, token_set, prefix_set, *, print_header=True): "Prefixes cannot start with '/', as it conflicts with Discord's slash commands." ) prefix = "" + if prefix and not confirm( + f'You chose "{prefix}" as your prefix. To run the help command,' + f" you will have to send:\n{prefix}help\n\n" + "Do you want to continue with this prefix?" + ): + prefix = "" if prefix: await red._config.prefix.set([prefix])