Beispiel #1
0
 public MicrosoftModule(ILogger <MicrosoftModule> logger, IVerificationService verificationService, IGuildConfigService guildConfigService, IVerificationStorageService verificationStorage)
 {
     _verificationStorage = verificationStorage;
     _guildConfigService  = guildConfigService;
     _logger = logger;
     _verificationService = verificationService;
 }
Beispiel #2
0
 public OngoingValidator(ILogger <OngoingValidator> logger, IVerificationService verificationService, IDiscordClient discord,
                         IVerificationStorageService verificationStorage, IGuildConfigService guildConfig)
 {
     _logger = logger;
     _verificationService = verificationService;
     _guildConfig         = guildConfig;
     _discord             = discord;
     _verificationStorage = verificationStorage;
     _verificationTimer   = new Timer(async s => await CleanupUsers(s), null, Timeout.Infinite, Timeout.Infinite);
 }
Beispiel #3
0
 public DiscordBot(IServiceProvider serviceProvider, ILogger <DiscordBot> logger, DiscordSocketConfig botConfig, BotSecretsConfig connectionConfig,
                   IGuildConfigService guildConfigService, IVerificationStorageService verificationStorage)
 {
     _serviceProvider     = serviceProvider;
     _verificationStorage = verificationStorage;
     _logger             = logger;
     _guildConfigService = guildConfigService;
     _connectionConfig   = connectionConfig;
     _botConfig          = botConfig;
     _discordClient      = new DiscordSocketClient(botConfig);
 }