Add help sections for all commands

This commit is contained in:
Tulir Asokan
2023-03-01 20:41:10 +02:00
parent 2440ca4e83
commit 0403a705b6
2 changed files with 11 additions and 7 deletions

View File

@@ -28,12 +28,14 @@ import (
"maunium.net/go/mautrix/bridge/commands"
)
var HelpSectionDiscordBots = commands.HelpSection{Name: "Discord bot interaction", Order: 30}
var cmdCommands = &commands.FullHandler{
Func: wrapCommand(fnCommands),
Name: "commands",
Aliases: []string{"cmds", "cs"},
Help: commands.HelpMeta{
Section: commands.HelpSectionUnclassified,
Section: HelpSectionDiscordBots,
Description: "View parameters of bot interaction commands on Discord",
Args: "search <_query_> OR help <_command_>",
},
@@ -46,7 +48,7 @@ var cmdExec = &commands.FullHandler{
Name: "exec",
Aliases: []string{"command", "cmd", "c", "exec", "e"},
Help: commands.HelpMeta{
Section: commands.HelpSectionUnclassified,
Section: HelpSectionDiscordBots,
Description: "Run bot interaction commands on Discord",
Args: "<_command_> [_arg=value ..._]",
},