From b0af0fbb083a52a456681efc103f971d313eea15 Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Tue, 13 Jun 2017 02:50:01 +0200 Subject: [PATCH] Using .h on non-existant command will once again show an error. --- src/NadekoBot/Modules/Help/Help.cs | 7 +++++++ src/NadekoBot/Services/Database/Models/BotConfig.cs | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/NadekoBot/Modules/Help/Help.cs b/src/NadekoBot/Modules/Help/Help.cs index 63a485b1..591b41f3 100644 --- a/src/NadekoBot/Modules/Help/Help.cs +++ b/src/NadekoBot/Modules/Help/Help.cs @@ -81,8 +81,15 @@ namespace NadekoBot.Modules.Help await ConfirmLocalized("commands_instr", Prefix).ConfigureAwait(false); } + [NadekoCommand, Usage, Description, Aliases] + [Priority(1)] + public async Task H([Remainder] string fail) + { + await ReplyErrorLocalized("command_not_found").ConfigureAwait(false); + } [NadekoCommand, Usage, Description, Aliases] + [Priority(0)] public async Task H([Remainder] CommandInfo com = null) { var channel = Context.Channel; diff --git a/src/NadekoBot/Services/Database/Models/BotConfig.cs b/src/NadekoBot/Services/Database/Models/BotConfig.cs index 0de8d19b..7e5f60ce 100644 --- a/src/NadekoBot/Services/Database/Models/BotConfig.cs +++ b/src/NadekoBot/Services/Database/Models/BotConfig.cs @@ -42,12 +42,12 @@ namespace NadekoBot.Services.Database.Models public HashSet EightBallResponses { get; set; } = new HashSet(); public HashSet RaceAnimals { get; set; } = new HashSet(); - public string DMHelpString { get; set; } = "Type `-h` for help."; + public string DMHelpString { get; set; } = "Type `.h` for help."; public string HelpString { get; set; } = @"To add me to your server, use this link -> You can use `{1}modules` command to see a list of all modules. You can use `{1}commands ModuleName` (for example `{1}commands Administration`) to see a list of all of the commands in that module. -For a specific command help, use `{1}h CommandName` (for example {1}h !!q) +For a specific command help, use `{1}h CommandName` (for example {1}h {1}q) **LIST OF COMMANDS CAN BE FOUND ON THIS LINK**