Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ask for confirmation before setting prefix on first-time setup #6287

Conversation

Jackenmen
Copy link
Member

Description of the changes

A simple change asking the user to confirm their choice with an example of how the bot would be used with the selected prefix. This might help avoid issues where the user sets their prefix to something such as "!help" since the example usage will then be "!helphelp". I was also considering doing .endswith("help") with "Are you sure that's correct?" like we have for long prefixes but I figured this more generic solution should work just as well and doesn't require special casing.

Have the changes in this PR been tested?

No

@Jackenmen Jackenmen added the Type: Enhancement Something meant to enhance existing Red features. label Jan 27, 2024
@Jackenmen Jackenmen added this to the 3.5.6 milestone Jan 27, 2024
@github-actions github-actions bot added the Category: Core - Command-line Interfaces This is related to Red's CLIs (redbot, redbot-launcher, redbot-setup). label Jan 27, 2024
@Flame442 Flame442 self-assigned this Feb 26, 2024
@Flame442 Flame442 merged commit 9345b69 into Cog-Creators:V3/develop Feb 26, 2024
17 checks passed
@red-githubbot red-githubbot bot added the Changelog Entry: Pending Changelog entry for this PR hasn't been added by repo maintainers yet. label Feb 26, 2024
@Jackenmen Jackenmen deleted the ask_for_confirmation_on_prefix_setup branch March 17, 2024 02:26
@Jackenmen Jackenmen added Changelog Entry: Added Changelog entry for this PR has already been added to changelog PR. and removed Changelog Entry: Pending Changelog entry for this PR hasn't been added by repo maintainers yet. labels Mar 22, 2024
Dav-Git pushed a commit to Dav-Git/Red-DiscordBot that referenced this pull request Sep 8, 2024
…reators#6287)

Co-authored-by: Michael Oliveira <34169552+Flame442@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Core - Command-line Interfaces This is related to Red's CLIs (redbot, redbot-launcher, redbot-setup). Changelog Entry: Added Changelog entry for this PR has already been added to changelog PR. Type: Enhancement Something meant to enhance existing Red features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants