@@ -34,23 +34,23 @@ public async Task<SlashCommandResponse> Execute(SlashCommand command)
3434 {
3535 // If command is just "help", return general help text
3636 if ( command . Text == "help" ) return CommandStrategyUtils . SlashCommandResponse ( GeneralHelpText ( command ) ) ;
37-
37+
3838 // If command is "help <command>", return help text for that command
3939 var commandName = command . Text . Substring ( 4 ) . Trim ( ) ;
4040
4141 foreach ( var parameter in _parameterManager )
4242 {
43- var args = new ParameterEventArgs ( )
43+ var args = new ParameterEventArgs
4444 {
4545 Name = commandName ,
4646 UserId = command . UserId ,
4747 Value = string . Empty ,
4848 ValueRaw = string . Empty
4949 } ;
50-
50+
5151 if ( parameter . CanHandle ( args ) )
5252 {
53- return CommandStrategyUtils . SlashCommandResponse ( parameter . BuildHelpText ( _gptDefaults ,
53+ return CommandStrategyUtils . SlashCommandResponse ( parameter . BuildHelpText ( _gptDefaults ,
5454 commandName , command . UserId ) ) ;
5555 }
5656 }
@@ -67,11 +67,20 @@ public async Task<SlashCommandResponse> Execute(SlashCommand command)
6767 private string GeneralHelpText ( SlashCommand command )
6868 {
6969 var sb = new StringBuilder ( ) ;
70- sb . AppendLine ( "Here are the commands you can use with the model\n " +
71- "Commands are only accepted if put at the beginning of the prompt eg:" +
72- "-command <prompt>\n " +
73- "@GPT -command <prompt>\n " +
74- "/gpt -command <prompt>\n " ) ;
70+ sb . AppendLine ( "Here are the commands you can use with the model" ) ;
71+ sb . AppendLine ( "Commands are only accepted if put at the beginning of the prompt eg:" ) ;
72+ sb . AppendLine ( "`-command <prompt>`" ) ;
73+ sb . AppendLine ( $ "`@{ _botInfo . BotInfo . User } -command <prompt>`") ;
74+ sb . AppendLine ( "`/gpt -command <prompt>`" ) ;
75+ sb . AppendLine ( ) ;
76+ sb . AppendLine ( "You can also use the following commands:" ) ;
77+ sb . AppendLine ( " - `/gpt help` - Display this help" ) ;
78+ sb . AppendLine ( " - `/gpt status` - Get the status of the bot" ) ;
79+ sb . AppendLine ( " - `/gpt commands` - List all commands" ) ;
80+ sb . AppendLine ( " - `/gpt whatsNew` - List the latest changes" ) ;
81+ sb . AppendLine ( " - `/gpt help <command>` - List help for a specific parameter command" ) ;
82+
83+ sb . AppendLine ( ) ;
7584 foreach ( var parameter in _parameterManager )
7685 {
7786 sb . AppendLine ( parameter . BuildShortHelpText ( _gptDefaults , command . UserId ) ) ;
0 commit comments