コード例 #1
0
 public LanguageService(CreateLanguageFilesService createLanguageFilesService = null, GuildAccountService GuildAccount = null, GlobalUserAccountService GlobalUser = null, GuildUserAccountService GuildUser = null)
 {
     _createLanguageFilesService = createLanguageFilesService;
     _guildAccountService        = GuildAccount;
     _globalUserAccountService   = GlobalUser;
     _guildUserAccountService    = GuildUser;
 }
コード例 #2
0
 public CommandHandlerService(DiscordSocketClient client, CommandService commands, IServiceProvider services, GuildAccountService accounts)
 {
     _commands = commands;
     _client   = client;
     _services = services;
     _accounts = accounts;
 }
コード例 #3
0
 public TestModule(CustomEmbedService customEmbedService   = null, CreateGuildAccountFilesService createGuildAccountFiles = null,
                   GuildAccountService guildAccountService = null)
 {
     _customEmbedService      = customEmbedService;
     _createGuildAccountFiles = createGuildAccountFiles;
     _guildAccountService     = guildAccountService;
 }
コード例 #4
0
        public ModerationService(GuildAccountService guilds, DiscordSocketClient client)
        {
            _guilds = guilds;
            _client = client;

            _infractionChecker.Elapsed += CheckInfractions;

            _infractionChecker.Start();
        }
コード例 #5
0
 public CommandHandlerService(DiscordSocketClient client, CustomCommandService commands, IServiceProvider services,
                              GuildAccountService accounts, AutoModerationService automod)
 {
     _commands = commands;
     _client   = client;
     _services = services;
     _accounts = accounts;
     _automod  = automod;
 }
コード例 #6
0
        public ChannelCounterService(DiscordSocketClient client, GLRClient glr, GuildAccountService guild)
        {
            _client = client;
            _glr    = glr;
            _guild  = guild;

            _timer.Start();
            _timer.Elapsed += OnTimerElapsed;

            InitializeCounters();
        }
コード例 #7
0
 public CommandHandlerService(IServiceProvider services, DiscordSocketClient client, CommandService commands,
                              GuildAccountService guildAccount, EventHookerService eventHooker, CustomEmbedService customEmbed,
                              CommandFailedService commandFailed, CommandSucceededService commandSucceeded)
 {
     _commands         = commands;
     _client           = client;
     _services         = services;
     _guildAccount     = guildAccount;
     _eventHooker      = eventHooker;
     _customEmbed      = customEmbed;
     _commandFailed    = commandFailed;
     _commandSucceeded = commandSucceeded;
 }
コード例 #8
0
 public EventHookerService(DiscordSocketClient client, CommandService command, LoggerService logger,
                           GuildUserAccountService guildUser, GlobalUserAccountService user, CreateLanguageFilesService language,
                           GuildAccountService guildAccount, CooldownService cooldown, BotConfig config)
 {
     _client       = client;
     _commands     = command;
     _logger       = logger;
     _guildUser    = guildUser;
     _user         = user;
     _language     = language;
     _guildAccount = guildAccount;
     _cooldown     = cooldown;
     _config       = config;
 }
コード例 #9
0
 public JsonFormatter(GuildAccountService guildAccount)
 {
     _guildAccount = guildAccount;
 }
コード例 #10
0
 public AutoModerationService(DiscordSocketClient client, GuildAccountService guilds, ModerationService moderation)
 {
     _client     = client;
     _guilds     = guilds;
     _moderation = moderation;
 }
コード例 #11
0
 public PingableRolesModule(GuildAccountService accounts)
 {
     _accounts = accounts;
 }
コード例 #12
0
ファイル: PrefixModule.cs プロジェクト: svr333/GLR-bot
 public PrefixModule(GuildAccountService accounts)
 {
     _accounts = accounts;
 }
コード例 #13
0
 public PrefixCommands(GuildAccountService guildService = null)
 {
     _guildAccountService = guildService;
 }
コード例 #14
0
 public CommandSucceededService(LoggerService logger, GuildAccountService guildAccount)
 {
     _logger       = logger;
     _guildAccount = guildAccount;
 }
コード例 #15
0
 public SelfObtainableRoles(GuildAccountService accounts, InvokeMessageService invokes)
 {
     _accounts = accounts;
     _invokes  = invokes;
 }
コード例 #16
0
 public CounterChannelsModule(ChannelCounterService counter, GuildAccountService guilds)
 {
     _counter = counter;
     _guilds  = guilds;
 }
コード例 #17
0
 public CommandPermissionsModule(GuildAccountService accounts, CommandService commands)
 {
     _accounts = accounts;
     _commands = commands;
 }