[Core] Help Redesign #2628

Merged
mikeshardmind merged 11 commits from 3.1-help-formatting into V3/develop 2019-05-15 05:49:52 +02:00
mikeshardmind commented 2019-04-29 16:39:20 +02:00 (Migrated from github.com)
  • Creates a new Red specific help formatting paradigm.

  • Creates and uses a new Red specific help command

  • Modifies each of the following to use them:

    • redbot.core.commands.Context
    • redbot.core.bot.RedBase

This includes some behavior changes:

  • By default, commands which are not found will not raise an error.
    • This may still be shown with fuzzy help
  • Invoking help for a command you can't run will fail siltently
- Creates a new Red specific help formatting paradigm. - Creates and uses a new Red specific help command - Modifies each of the following to use them: - redbot.core.commands.Context - redbot.core.bot.RedBase ## This includes some behavior changes: - By default, commands which are not found will not raise an error. - This may still be shown with fuzzy help - Invoking help for a command you can't run will fail siltently
palmtree5 (Migrated from github.com) reviewed 2019-04-29 16:39:20 +02:00
Twentysix26 (Migrated from github.com) reviewed 2019-04-29 16:39:20 +02:00
Tobotimus (Migrated from github.com) reviewed 2019-04-29 16:39:20 +02:00
DevilXD commented 2019-04-30 20:40:49 +02:00 (Migrated from github.com)

Can there be a setting / command where one could set automatic deletion of help messages? Something along the lines of this help_autodelete cog for v2: https://cogs.red/cogs/ZeLarpMaster/ZeCogs/help_autodelete/, where a help response message is deleted along with the context message.

It does a really good job at cleaning up stray help messages people sometimes leave in not-so-frequently-visited channels.

Can there be a setting / command where one could set automatic deletion of help messages? Something along the lines of this `help_autodelete` cog for v2: https://cogs.red/cogs/ZeLarpMaster/ZeCogs/help_autodelete/, where a help response message is deleted along with the context message. It does a really good job at cleaning up stray help messages people sometimes leave in not-so-frequently-visited channels.
mikeshardmind commented 2019-05-01 17:05:54 +02:00 (Migrated from github.com)

@DevilXD not in the initial conversion, but restructuring the help formatter like this is going to open up more easily adding such settings.

@DevilXD not in the initial conversion, but restructuring the help formatter like this is going to open up more easily adding such settings.
Stonedestroyer commented 2019-05-05 10:56:24 +02:00 (Migrated from github.com)

One request for this help-formatter would be an option either in permissions or in the help-formatter itself that you can decide to hide so people can not do help on commands they do not have permission on. The current iteration of help formatter does this but only on categories and overall menu and not specific single commands.

From PR: https://github.com/Cog-Creators/Red-DiscordBot/pull/2583 .

One request for this help-formatter would be an option either in permissions or in the help-formatter itself that you can decide to hide so people can not do help on commands they do not have permission on. The current iteration of help formatter does this but only on categories and overall menu and not specific single commands. From PR: https://github.com/Cog-Creators/Red-DiscordBot/pull/2583 .
mikeshardmind commented 2019-05-05 15:35:36 +02:00 (Migrated from github.com)

@stonedestroyer this should be the default behavior after the initial changes, with a setting exposed for this later on. Current work on this is intended to continue supporting settings we already have, while picking good defaults for remaining things for now, but in a way this can be changed later with additional settings.

After some further thought since discussion in your other PR, making the behavior consistent there by default is the right choice, and this is the best time to include that sort of change to the default behavior.

@stonedestroyer this should be the default behavior after the initial changes, with a setting exposed for this later on. Current work on this is intended to continue supporting settings we already have, while picking good defaults for remaining things for now, but in a way this can be changed later with additional settings. After some further thought since discussion in your other PR, making the behavior consistent there by default is the right choice, and this is the best time to include that sort of change to the default behavior.
mikeshardmind commented 2019-05-11 11:40:24 +02:00 (Migrated from github.com)

This is ready for review.

There are a couple small behavior changes here regarding commands which users can't run or are hidden, (as well as similar changes surrounding commands not found), but these are only intended as defaults. Settings for these can be added, and the plan to allow more easily registered 3rd party formatters is still planned as far as I'm concerned.

The behavior changes are all centered around help being quiet by default when the user should have no direct knowledge of a command from the bot in that context.

This is ready for review. There are a couple small behavior changes here regarding commands which users can't run or are hidden, (as well as similar changes surrounding commands not found), but these are only intended as defaults. Settings for these can be added, and the plan to allow more easily registered 3rd party formatters is still planned as far as I'm concerned. The behavior changes are all centered around help being quiet by default when the user should have no direct knowledge of a command from the bot in that context.
Stonedestroyer commented 2019-05-11 12:00:06 +02:00 (Migrated from github.com)

Not sure if I messed something up but getting
raise AttributeError("'{}' is not a valid registered Group or value.".format(item)) AttributeError: 'max_pages_in_guild' is not a valid registered Group or value.

Edit: Disregard this, works on a clean venv.

Not sure if I messed something up but getting ` raise AttributeError("'{}' is not a valid registered Group or value.".format(item)) AttributeError: 'max_pages_in_guild' is not a valid registered Group or value.` Edit: Disregard this, works on a clean venv.
mikeshardmind commented 2019-05-13 01:35:36 +02:00 (Migrated from github.com)

I need to fix something with the full bot help on this later, I seem to have overlooked a potential issue with it.

I need to fix something with the full bot help on this later, I seem to have overlooked a potential issue with it.
mikeshardmind commented 2019-05-13 03:51:17 +02:00 (Migrated from github.com)

PR is ready for use, fixed the bot specific issue which was overlooked.

This is now failing on a docs issue unrelated to this PR. discord.py removed a build from RTD in removing the rewrite branch.

PR is ready for use, fixed the bot specific issue which was overlooked. This is now failing on a docs issue unrelated to this PR. discord.py removed a build from RTD in removing the rewrite branch.
tekulvw (Migrated from github.com) approved these changes 2019-05-15 05:49:04 +02:00
Sign in to join this conversation.
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot!2628
No description provided.