diff --git a/docs/Commands List.md b/docs/Commands List.md index 727d53f3..f435ab6d 100644 --- a/docs/Commands List.md +++ b/docs/Commands List.md @@ -2,59 +2,17 @@ You can support the project on patreon: or paypa ##Table Of Contents - [Help](#help) -- [Acropobia](#acropobia) - [Administration](#administration) -- [AnimalRacing](#animalracing) -- [AnimeSearchCommands](#animesearchcommands) -- [AntiRaidCommands](#antiraidcommands) -- [AutoAssignRoleCommands](#autoassignrolecommands) -- [BlacklistCommands](#blacklistcommands) -- [CalcCommands](#calccommands) - [ClashOfClans](#clashofclans) -- [CleverBotCommands](#cleverbotcommands) -- [CmdCdsCommands](#cmdcdscommands) -- [CrossServerTextChannel](#crossservertextchannel) - [CustomReactions](#customreactions) -- [DMForwardCommands](#dmforwardcommands) -- [DrawCommands](#drawcommands) -- [DriceRollCommands](#dricerollcommands) -- [FilterCommands](#filtercommands) -- [FlipCoinCommands](#flipcoincommands) - [Gambling](#gambling) - [Games](#games) -- [HangmanCommands](#hangmancommands) -- [InfoCommands](#infocommands) -- [JokeCommands](#jokecommands) -- [LogCommands](#logcommands) -- [Migration](#migration) - [Music](#music) -- [MuteCommands](#mutecommands) - [NSFW](#nsfw) -- [OsuCommands](#osucommands) -- [OverwatchCommands](#overwatchcommands) - [Permissions](#permissions) -- [PlaceCommands](#placecommands) -- [PlantPickCommands](#plantpickcommands) -- [PlayingRotateCommands](#playingrotatecommands) - [Pokemon](#pokemon) -- [PokemonSearchCommands](#pokemonsearchcommands) -- [PollCommands](#pollcommands) -- [QuoteCommands](#quotecommands) -- [RatelimitCommand](#ratelimitcommand) -- [RemindCommands](#remindcommands) -- [RepeatCommands](#repeatcommands) - [Searches](#searches) -- [SelfAssignedRolesCommands](#selfassignedrolescommands) -- [SelfCommands](#selfcommands) -- [ServerGreetCommands](#servergreetcommands) -- [SpeedTypingCommands](#speedtypingcommands) -- [StreamNotificationCommands](#streamnotificationcommands) -- [TranslateCommands](#translatecommands) -- [TriviaCommands](#triviacommands) -- [UnitConverterCommands](#unitconvertercommands) - [Utility](#utility) -- [VoicePlusTextCommands](#voiceplustextcommands) -- [XkcdCommands](#xkcdcommands) ### Administration diff --git a/src/NadekoBot/Modules/Help/Help.cs b/src/NadekoBot/Modules/Help/Help.cs index f4e4136a..87f31de0 100644 --- a/src/NadekoBot/Modules/Help/Help.cs +++ b/src/NadekoBot/Modules/Help/Help.cs @@ -127,7 +127,12 @@ namespace NadekoBot.Modules.Help var helpstr = new StringBuilder(); helpstr.AppendLine("You can support the project on patreon: or paypal: \n"); helpstr.AppendLine("##Table Of Contents"); - helpstr.AppendLine(string.Join("\n", NadekoBot.CommandService.Modules.Where(m => m.GetTopLevelModule().Name.ToLowerInvariant() != "help").OrderBy(m => m.Name).Prepend(NadekoBot.CommandService.Modules.FirstOrDefault(m=>m.Name.ToLowerInvariant()=="help")).Select(m => $"- [{m.Name}](#{m.Name.ToLowerInvariant()})"))); + helpstr.AppendLine(string.Join("\n", NadekoBot.CommandService.Modules.Where(m => m.GetTopLevelModule().Name.ToLowerInvariant() != "help") + .Select(m => m.GetTopLevelModule().Name) + .Distinct() + .OrderBy(m => m) + .Prepend("Help") + .Select(m => $"- [{m}](#{m.ToLowerInvariant()})"))); helpstr.AppendLine(); string lastModule = null; foreach (var com in NadekoBot.CommandService.Commands.OrderBy(com => com.Module.GetTopLevelModule().Name).GroupBy(c => c.Aliases.First()).Select(g => g.First())) @@ -150,7 +155,7 @@ namespace NadekoBot.Modules.Help } helpstr = helpstr.Replace(NadekoBot.Client.CurrentUser().Username , "@BotName"); File.WriteAllText("../../docs/Commands List.md", helpstr.ToString()); - await Context.Channel.SendMessageAsync("").ConfigureAwait(false); + await Context.Channel.SendConfirmAsync("Commandlist Regenerated").ConfigureAwait(false); } [NadekoCommand, Usage, Description, Aliases]