Skip to content

modlogtools: drop send_help from commands, add view subcommand - #278

Merged
vertyco merged 1 commit into
mainfrom
claude/modlogtools-cog-review-kxfomu
Jun 18, 2026
Merged

modlogtools: drop send_help from commands, add view subcommand#278
vertyco merged 1 commit into
mainfrom
claude/modlogtools-cog-review-kxfomu

Conversation

@vertyco

@vertyco vertyco commented Jun 18, 2026

Copy link
Copy Markdown
Owner

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

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
Copilot AI review requested due to automatic review settings June 18, 2026 16:00
@vertyco
vertyco merged commit 19b9a0a into main Jun 18, 2026
1 check failed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 view with aliases (status, settings).
  • Remove maybe_send_command_help and stop auto-sending help text across multiple commands.
  • Update README to reference modlogtool view instead of status.

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 thread modlogtools/README.md
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants