modlogtools: drop send_help from commands, add view subcommand - #278
Merged
Conversation
Group and subcommands no longer auto-send the help embed alongside their output. The bare `modlogtool` group now relies on Red's default help-on-no-subcommand behavior, and settings are shown via a dedicated `view` subcommand (aliases: status, settings). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBADKtnY3mve4Rup1dTVkr
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Updates the ModLogTools admin command UX by changing the “status” subcommand into a more discoverable “view” command and removing automatic help-sending behavior from several commands.
Changes:
- Rename/expand the status command into
modlogtool viewwith aliases (status,settings). - Remove
maybe_send_command_helpand stop auto-sending help text across multiple commands. - Update README to reference
modlogtool viewinstead ofstatus.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| modlogtools/commands/admin.py | Reworks modlogtool command group behavior and renames status to view; removes auto-help sending. |
| modlogtools/README.md | Updates documented command from status to view. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+219
to
+224
| @commands.group(name="modlogtool", aliases=["mlt"]) | ||
| @commands.guild_only() | ||
| @commands.mod_or_permissions(manage_messages=True) | ||
| async def modlogtool(self, ctx: commands.Context): | ||
| """Configure ModLogTools and view warning insights.""" | ||
| await self.maybe_send_command_help(ctx, show=True) | ||
| await ctx.send("\n".join(self.get_status_lines(ctx.guild))) | ||
| pass |
Comment on lines
18
to
21
| - `[p]modlogtool` | ||
| - Show help for subcommands. | ||
| - `[p]modlogtool status` | ||
| - `[p]modlogtool view` | ||
| - Show current expiry setting and tracked warning counts. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Group and subcommands no longer auto-send the help embed alongside
their output. The bare
modlogtoolgroup now relies on Red's defaulthelp-on-no-subcommand behavior, and settings are shown via a dedicated
viewsubcommand (aliases: status, settings).Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01WBADKtnY3mve4Rup1dTVkr