feae29397ce1e0a1b2cafac1ce8b5a41209ea063 — Louis Solofrizzo 5 months ago 21d8e38
cmd: Fix commands usage and plurals

Signed-off-by: Louis Solofrizzo <lsolofrizzo@online.net>
1 files changed, 8 insertions(+), 8 deletions(-)

M cmd/command.go
M cmd/command.go => cmd/command.go +8 -8
@@ 14,8 14,8 @@ var commandAdd = &sdk.Command{
  	Name:     "add",
  	Help:     "Add / Update an command",
- 	Usage:    "command add <name> <cmd>",
- 	Examples: []string{"command add h help", "command add bear bears 10"},
+ 	Usage:    "command add <name> <value>",
+ 	Examples: []string{"command add hello Hi!", "command add google https://google.fr"},
  	Flag:     sdk.MUST_BE_OP | sdk.MUST_BE_ON_CHANNEL,
  	Callback: func(b *hbot.Bot, m *hbot.Message, args []string) {
  		if len(args) < 2 {


@@ 33,17 33,17 @@   var commandList = &sdk.Command{
  	Name:  "list",
- 	Help:  "List all commandes",
+ 	Help:  "List all commands",
  	Usage: "command list",
  	Flag:  sdk.MUST_BE_ON_CHANNEL,
  	Callback: func(b *hbot.Bot, m *hbot.Message, args []string) {
- 		commandes := sdk.CommandList(m.To)
- 		if len(commandes) == 0 {
- 			b.Reply(m, "No commandes have been found.")
+ 		commands := sdk.CommandList(m.To)
+ 		if len(commands) == 0 {
+ 			b.Reply(m, "No commands have been found.")
  			return
  		}
  
- 		for _, command := range commandes {
+ 		for _, command := range commands {
  			b.Reply(m, sdk.BOLD+sdk.Config.Irc.Prefix+command.Name+sdk.RESET+
  				": "+sdk.Config.Irc.Prefix+command.Value)
  		}


@@ 52,7 52,7 @@   var commandDelete = &sdk.Command{
  	Name:  "delete",
- 	Help:  "Delete an command",
+ 	Help:  "Delete a command",
  	Usage: "command delete <command> ..",
  	Flag:  sdk.MUST_BE_OP | sdk.MUST_BE_ON_CHANNEL,
  	Callback: func(b *hbot.Bot, m *hbot.Message, args []string) {