Example #1
0
 public AutoRemoveMessageHandler(
     IMemoryCache cache,
     IAutoRemoveMessageService autoRemoveMessageService)
 {
     Cache = cache;
     AutoRemoveMessageService = autoRemoveMessageService;
 }
Example #2
0
 public IlModule(
     CodePasteService pasteService,
     IAutoRemoveMessageService autoRemoveMessageService,
     IHttpClientFactory httpClientFactory)
 {
     _pasteService             = pasteService;
     _autoRemoveMessageService = autoRemoveMessageService;
     _httpClientFactory        = httpClientFactory;
 }
Example #3
0
 public IlModule(
     CodePasteService pasteService,
     IAutoRemoveMessageService autoRemoveMessageService,
     IHttpClientFactory httpClientFactory,
     IOptions <ModixConfig> modixConfig)
 {
     _pasteService             = pasteService;
     _autoRemoveMessageService = autoRemoveMessageService;
     _httpClientFactory        = httpClientFactory;
     _ilUrl = string.IsNullOrWhiteSpace(modixConfig.Value.IlUrl) ? DefaultIlRemoteUrl : modixConfig.Value.IlUrl;
 }
Example #4
0
 public UserInfoCommandHandler(ModixContext modixContext, IDiscordClient discordClient,
                               IAutoRemoveMessageService autoRemoveMessageService, IImageService imageService, ILogger <UserInfoCommandHandler> logger,
                               IOptions <ModixConfig> modixOptions, IMessageRepository messageRepository)
 {
     _modixContext             = modixContext;
     _discordClient            = discordClient;
     _autoRemoveMessageService = autoRemoveMessageService;
     _imageService             = imageService;
     _logger            = logger;
     _messageRepository = messageRepository;
     _modixConfig       = modixOptions.Value;
 }
Example #5
0
 public UserInfoModule(
     ILogger <UserInfoModule> logger,
     IUserService userService,
     IModerationService moderationService,
     IAuthorizationService authorizationService,
     IMessageRepository messageRepository,
     IEmojiRepository emojiRepository,
     IPromotionsService promotionsService,
     IImageService imageService,
     IOptions <ModixConfig> config,
     IAutoRemoveMessageService autoRemoveMessageService)
 {
     _log                      = logger ?? new NullLogger <UserInfoModule>();
     _userService              = userService;
     _moderationService        = moderationService;
     _authorizationService     = authorizationService;
     _messageRepository        = messageRepository;
     _emojiRepository          = emojiRepository;
     _promotionsService        = promotionsService;
     _imageService             = imageService;
     _config                   = config.Value;
     _autoRemoveMessageService = autoRemoveMessageService;
 }
Example #6
0
 public QuoteService(IAutoRemoveMessageService autoRemoveMessageService)
 {
     _autoRemoveMessageService = autoRemoveMessageService;
 }
Example #7
0
 public LinkModule(IAutoRemoveMessageService autoRemoveMessageService)
 {
     _autoRemoveMessageService = autoRemoveMessageService;
 }
Example #8
0
 public IsUpModule(IsUpService isUpService,
                   IAutoRemoveMessageService autoRemoveMessageService)
 {
     _isUpService = isUpService;
     _autoRemoveMessageService = autoRemoveMessageService;
 }
Example #9
0
 public IsUpModule(IHttpClientFactory httpClientFactory, IAutoRemoveMessageService autoRemoveMessageService)
 {
     _httpClientFactory        = httpClientFactory;
     _autoRemoveMessageService = autoRemoveMessageService;
 }
Example #10
0
 public IsUpCommandHandler(IHttpClientFactory httpClientFactory,
                           IAutoRemoveMessageService autoRemoveMessageService)
 {
     _httpClientFactory        = httpClientFactory;
     _autoRemoveMessageService = autoRemoveMessageService;
 }
Example #11
0
 public DocumentationModule(DocumentationService documentationService,
                            IAutoRemoveMessageService autoRemoveMessageService)
 {
     DocumentationService      = documentationService;
     _autoRemoveMessageService = autoRemoveMessageService;
 }