Moved Help to its own file, created administration module which now contains help. I will add more commands to it in the future.
This commit is contained in:
20
NadekoBot/Modules/Administration.cs
Normal file
20
NadekoBot/Modules/Administration.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using Discord.Modules;
|
||||
|
||||
namespace NadekoBot.Modules
|
||||
{
|
||||
class Administration : DiscordModule
|
||||
{
|
||||
public Administration() : base() {
|
||||
commands.Add(new HelpCommand());
|
||||
}
|
||||
|
||||
public override void Install(ModuleManager manager)
|
||||
{
|
||||
manager.CreateCommands("", cgb =>
|
||||
{
|
||||
commands.ForEach(com => com.Init(cgb));
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user