Commandlist fixed
This commit is contained in:
parent
8abf26cb8e
commit
e877e62641
@ -1,19 +1,18 @@
|
|||||||
######For more information and how to setup your own NadekoBot, go to: <http://github.com/Kwoth/NadekoBot/wiki>
|
######For more information and how to setup your own NadekoBot, go to: <http://github.com/Kwoth/NadekoBot/wiki>
|
||||||
######You can support the project on patreon: <https://patreon.com/nadekobot> or paypal: `nadekodiscordbot@gmail.com`
|
######You can support the project on patreon: <https://patreon.com/nadekobot> or paypal: `nadekodiscordbot@gmail.com`
|
||||||
##Table Of Contents
|
##Table Of Contents
|
||||||
- [Permissions](#Permissions)
|
- [Music](#music)
|
||||||
- [Games](#Games)
|
- [Gambling](#gambling)
|
||||||
- [NSFW](#NSFW)
|
- [Permissions](#permissions)
|
||||||
- [Searches](#Searches)
|
- [Administration](#administration)
|
||||||
- [ClashOfClans](#ClashOfClans)
|
- [ClashOfClans](#clashofclans)
|
||||||
- [Music](#Music)
|
- [Utility](#utility)
|
||||||
- [Utility](#Utility)
|
- [Games](#games)
|
||||||
- [Gambling](#Gambling)
|
- [Help](#help)
|
||||||
- [CustomReactions](#CustomReactions)
|
- [NSFW](#nsfw)
|
||||||
- [Help](#Help)
|
- [CustomReactions](#customreactions)
|
||||||
- [Administration](#Administration)
|
- [Searches](#searches)
|
||||||
|
|
||||||
###### [Back to TOC](#table-of-contents)
|
|
||||||
|
|
||||||
### Administration
|
### Administration
|
||||||
Command and aliases | Description | Usage
|
Command and aliases | Description | Usage
|
||||||
|
@ -128,13 +128,14 @@ namespace NadekoBot.Modules.Help
|
|||||||
helpstr.AppendLine(@"######For more information and how to setup your own NadekoBot, go to: <http://github.com/Kwoth/NadekoBot/wiki>
|
helpstr.AppendLine(@"######For more information and how to setup your own NadekoBot, go to: <http://github.com/Kwoth/NadekoBot/wiki>
|
||||||
######You can support the project on patreon: <https://patreon.com/nadekobot> or paypal: `nadekodiscordbot@gmail.com`");
|
######You can support the project on patreon: <https://patreon.com/nadekobot> or paypal: `nadekodiscordbot@gmail.com`");
|
||||||
helpstr.AppendLine("##Table Of Contents");
|
helpstr.AppendLine("##Table Of Contents");
|
||||||
helpstr.AppendLine(string.Join("\n", NadekoBot.CommandService.Modules.Select(m => $"- [{m.Name}](#{m.Name})")));
|
helpstr.AppendLine(string.Join("\n", NadekoBot.CommandService.Modules.Select(m => $"- [{m.Name}](#{m.Name.ToLowerInvariant()})")));
|
||||||
helpstr.AppendLine();
|
helpstr.AppendLine();
|
||||||
var lastModule = "";
|
string lastModule = null;
|
||||||
foreach (var com in _commands.Commands.OrderBy(com=>com.Module.Name).GroupBy(c=>c.Text).Select(g=>g.First()))
|
foreach (var com in _commands.Commands.OrderBy(com=>com.Module.Name).GroupBy(c=>c.Text).Select(g=>g.First()))
|
||||||
{
|
{
|
||||||
if (com.Module.Name != lastModule)
|
if (com.Module.Name != lastModule)
|
||||||
{
|
{
|
||||||
|
if (lastModule != null)
|
||||||
helpstr.AppendLine("###### [Back to TOC](#table-of-contents)");
|
helpstr.AppendLine("###### [Back to TOC](#table-of-contents)");
|
||||||
helpstr.AppendLine();
|
helpstr.AppendLine();
|
||||||
helpstr.AppendLine("### " + com.Module.Name + " ");
|
helpstr.AppendLine("### " + com.Module.Name + " ");
|
||||||
|
Loading…
Reference in New Issue
Block a user