diff --git a/NadekoBot/Modules/Administration.cs b/NadekoBot/Modules/Administration.cs index 3e3907db..dfdce1c3 100644 --- a/NadekoBot/Modules/Administration.cs +++ b/NadekoBot/Modules/Administration.cs @@ -19,7 +19,6 @@ using Timer = System.Timers.Timer; namespace NadekoBot.Modules { class Administration : DiscordModule { public Administration() : base() { - commands.Add(new HelpCommand()); commands.Add(new ServerGreetCommand()); } diff --git a/NadekoBot/Modules/Help.cs b/NadekoBot/Modules/Help.cs new file mode 100644 index 00000000..f9c2f7b7 --- /dev/null +++ b/NadekoBot/Modules/Help.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Discord.Modules; + +namespace NadekoBot.Modules { + class Help : DiscordModule { + + public Help() : base() { + commands.Add(new HelpCommand()); + } + + public override void Install(ModuleManager manager) { + manager.CreateCommands("", cgb => { + cgb.AddCheck(Classes.Permissions.PermissionChecker.Instance); + commands.ForEach(com => com.Init(cgb)); + }); + } + } +} diff --git a/NadekoBot/NadekoBot.cs b/NadekoBot/NadekoBot.cs index d9fd7229..8d700e8c 100644 --- a/NadekoBot/NadekoBot.cs +++ b/NadekoBot/NadekoBot.cs @@ -92,6 +92,7 @@ namespace NadekoBot { //install modules modules.Add(new Administration(), "Administration", ModuleFilter.None); + modules.Add(new Help(), "Help", ModuleFilter.None); modules.Add(new PermissionModule(), "Permissions", ModuleFilter.None); modules.Add(new Conversations(), "Conversations", ModuleFilter.None); modules.Add(new Gambling(), "Gambling", ModuleFilter.None); diff --git a/NadekoBot/NadekoBot.csproj b/NadekoBot/NadekoBot.csproj index 3b55ed5f..289fc6d2 100644 --- a/NadekoBot/NadekoBot.csproj +++ b/NadekoBot/NadekoBot.csproj @@ -167,6 +167,7 @@ +