Ejemplo n.º 1
0
 public AutoRemoveMessageHandler(
     IMemoryCache cache,
     IAutoRemoveMessageService autoRemoveMessageService)
 {
     Cache = cache;
     AutoRemoveMessageService = autoRemoveMessageService;
 }
Ejemplo n.º 2
0
 public IlModule(
     CodePasteService pasteService,
     IAutoRemoveMessageService autoRemoveMessageService,
     IHttpClientFactory httpClientFactory)
 {
     _pasteService             = pasteService;
     _autoRemoveMessageService = autoRemoveMessageService;
     _httpClientFactory        = httpClientFactory;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 6
0
 public QuoteService(IAutoRemoveMessageService autoRemoveMessageService)
 {
     _autoRemoveMessageService = autoRemoveMessageService;
 }
Ejemplo n.º 7
0
 public LinkModule(IAutoRemoveMessageService autoRemoveMessageService)
 {
     _autoRemoveMessageService = autoRemoveMessageService;
 }
Ejemplo n.º 8
0
 public IsUpModule(IsUpService isUpService,
                   IAutoRemoveMessageService autoRemoveMessageService)
 {
     _isUpService = isUpService;
     _autoRemoveMessageService = autoRemoveMessageService;
 }
Ejemplo n.º 9
0
 public IsUpModule(IHttpClientFactory httpClientFactory, IAutoRemoveMessageService autoRemoveMessageService)
 {
     _httpClientFactory        = httpClientFactory;
     _autoRemoveMessageService = autoRemoveMessageService;
 }
Ejemplo n.º 10
0
 public IsUpCommandHandler(IHttpClientFactory httpClientFactory,
                           IAutoRemoveMessageService autoRemoveMessageService)
 {
     _httpClientFactory        = httpClientFactory;
     _autoRemoveMessageService = autoRemoveMessageService;
 }
Ejemplo n.º 11
0
 public DocumentationModule(DocumentationService documentationService,
                            IAutoRemoveMessageService autoRemoveMessageService)
 {
     DocumentationService      = documentationService;
     _autoRemoveMessageService = autoRemoveMessageService;
 }