Skip to content

added command help#10

Merged
breadddevv merged 1 commit into
mainfrom
feature/kb
Jun 18, 2026
Merged

added command help#10
breadddevv merged 1 commit into
mainfrom
feature/kb

Conversation

@breadddevv

@breadddevv breadddevv commented Jun 18, 2026

Copy link
Copy Markdown
Member

🚀 Summary

  • Added interactive /help command with searchable documentation for 5 core commands (booster, bot-info, role, config, setup)
  • Implemented autocomplete suggestions for help command lookup by registered command names

✨ Features

  • New /help command - Provides markdown-formatted help documentation for server commands with customizable accent colors (green for found, red for unknown)
  • Help autocomplete event - Dynamically filters and suggests available commands as users type in the help command's autocomplete field
  • Comprehensive knowledge base - Includes detailed documentation covering command usage, parameters, behavior, permissions, and examples for booster management, bot info, custom roles, server configuration, and initial setup systems

@breadddevv breadddevv merged commit d716b84 into main Jun 18, 2026
2 of 3 checks passed
@coderabbitai

coderabbitai Bot commented Jun 18, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 8a8ab1d7-f3e0-48b7-a5ca-ca2730ae8c71

📥 Commits

Reviewing files that changed from the base of the PR and between 1824287 and 113c88e.

📒 Files selected for processing (2)
  • src/commands/help.ts
  • src/events/helpautocomplete.ts

📝 Walkthrough

Walkthrough

Two new files are added: src/commands/help.ts implements a /help slash command with a static knowledgebase map of markdown help text for existing commands (booster, bot-info, role, config, setup), and src/events/helpautocomplete.ts implements an InteractionCreate handler that provides prefix-filtered autocomplete suggestions for that command.

Changes

/help command and autocomplete

Layer / File(s) Summary
/help command: knowledgebase and execution
src/commands/help.ts
Imports Discord builder utilities, defines a static knowledgebase map of command names to large markdown help strings, and exports a /help command that resolves the requested command, builds a ContainerBuilder response with SystemColors.main (found) or Colors.Red (not found) accent, and replies with MessageFlags.IsComponentsV2.
Autocomplete handler
src/events/helpautocomplete.ts
Exports an Events.InteractionCreate handler that guards on autocomplete + commandName === "help", filters the client's commands collection by prefix match on the focused input, and responds with { name: /commandName, value: commandName } suggestion pairs.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 Hippity hop, I've got help to bring,
A knowledgebase built for every command thing!
Type /help booster and watch the text flow,
Autocomplete guides you — just start with a "/"!
Red for unknown, and teal for the found,
This rabbit's got docs going round and round! 🌿

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/kb

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@breadddevv breadddevv deleted the feature/kb branch June 18, 2026 22:06
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.

1 participant