feat(commands): improve discovery and normalize parameters

This commit is contained in:
tiennm99 committed 2026-07-21 11:45:20 +07:00
1 parent 3316eec74c
commit f5ba9d4032
31 files changed
+479 -56

No files matched your search

+3 -1
View File
@@ -20,7 +20,7 @@ const statsUsage = `Usage:
/stats
/stats users
/stats user <username>
/stats cmd <name>`
/stats cmd <command_name>`
type row struct {
display string
@@ -32,6 +32,8 @@ func statsCommand(c *counter) modules.Command {
Name: "stats",
Visibility: modules.VisibilityPublic,
Description: "Show command usage statistics",
Parameters: "[users | user <username> | cmd <command_name>]",
Example: "/stats user alice",
Handler: func(ctx context.Context, b *bot.Bot, update *models.Update) error {
if update.Message == nil {
return nil