help moved to its own module

This commit is contained in:
Master Kwoth
2016-02-15 23:06:14 +01:00
parent cb976ba3eb
commit ba1582bce0
4 changed files with 24 additions and 1 deletions

View File

@ -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());
}

22
NadekoBot/Modules/Help.cs Normal file
View File

@ -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));
});
}
}
}