@@ -91,7 +91,7 @@ fn app() -> Result {
9191 // Tags
9292 cmds. add ( "?tags delete {key}" , tags:: delete) ;
9393 cmds. add ( "?tags create {key} value..." , tags:: post) ;
94- cmds. add ( "?tags {key}" , tags:: get) ;
94+ cmds. add ( "?tag {key}" , tags:: get) ;
9595 cmds. add ( "?tags" , tags:: get_all) ;
9696 cmds. help ( "?tags" , "A key value store" , tags:: help) ;
9797 }
@@ -109,16 +109,27 @@ fn app() -> Result {
109109 // Slow mode.
110110 // 0 seconds disables slowmode
111111 cmds. add ( "?slowmode {channel} {seconds}" , api:: slow_mode) ;
112+ cmds. help (
113+ "?slowmode" ,
114+ "Set slowmode on a channel" ,
115+ api:: slow_mode_help,
116+ ) ;
112117
113118 // Kick
114119 cmds. add ( "?kick {user}" , api:: kick) ;
120+ cmds. help ( "?kick" , "Kick a user from the guild" , api:: kick_help) ;
115121
116122 // Ban
117123 cmds. add ( "?ban {user} {hours} reason..." , ban:: temp_ban) ;
118124 cmds. help ( "?ban" , "Temporarily ban a user from the guild" , ban:: help) ;
119125
120126 // Post the welcome message to the welcome channel.
121127 cmds. add ( "?CoC {channel}" , welcome:: post_message) ;
128+ cmds. help (
129+ "?CoC" ,
130+ "Post the code of conduct message to a channel" ,
131+ welcome:: help,
132+ ) ;
122133
123134 let menu = main_menu ( cmds. menu ( ) ) ;
124135 cmds. add ( "?help" , move |args : Args | {
@@ -143,11 +154,11 @@ fn main_menu(commands: &HashMap<&str, &str>) -> String {
143154 menu = commands
144155 . iter ( )
145156 . fold ( menu, |mut menu, ( base_cmd, description) | {
146- menu += & format ! ( "\t {cmd:<8 }{desc}\n " , cmd = base_cmd, desc = description) ;
157+ menu += & format ! ( "\t {cmd:<12 }{desc}\n " , cmd = base_cmd, desc = description) ;
147158 menu
148159 } ) ;
149160
150- menu += & format ! ( "\t {help:<8 }This menu\n " , help = "?help" ) ;
161+ menu += & format ! ( "\t {help:<12 }This menu\n " , help = "?help" ) ;
151162 menu += "\n Type ?help command for more info on a command." ;
152163 menu
153164}
0 commit comments