More fixes to -hgit and commandlist
This commit is contained in:
		| @@ -2,59 +2,17 @@ You can support the project on patreon: <https://patreon.com/nadekobot> 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   | ||||
|   | ||||
| @@ -127,7 +127,12 @@ namespace NadekoBot.Modules.Help | ||||
|             var helpstr = new StringBuilder(); | ||||
|             helpstr.AppendLine("You can support the project on patreon: <https://patreon.com/nadekobot> or paypal: <https://www.paypal.me/Kwoth>\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] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user