2016-03-26 21:58:23 +01:00
|
|
|
|
using Discord.Modules;
|
|
|
|
|
using NadekoBot.Extensions;
|
2016-04-15 00:17:29 +02:00
|
|
|
|
using NadekoBot.Modules.Permissions.Classes;
|
2016-03-26 21:58:23 +01:00
|
|
|
|
|
|
|
|
|
namespace NadekoBot.Modules.Translator
|
|
|
|
|
{
|
|
|
|
|
internal class TranslatorModule : DiscordModule
|
|
|
|
|
{
|
|
|
|
|
public TranslatorModule()
|
|
|
|
|
{
|
|
|
|
|
commands.Add(new TranslateCommand(this));
|
|
|
|
|
commands.Add(new ValidLanguagesCommand(this));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string Prefix { get; } = NadekoBot.Config.CommandPrefixes.Searches;
|
|
|
|
|
|
|
|
|
|
public override void Install(ModuleManager manager)
|
|
|
|
|
{
|
|
|
|
|
manager.CreateCommands("", cgb =>
|
|
|
|
|
{
|
2016-04-15 00:17:29 +02:00
|
|
|
|
cgb.AddCheck(PermissionChecker.Instance);
|
2016-03-26 21:58:23 +01:00
|
|
|
|
commands.ForEach(cmd => cmd.Init(cgb));
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|