コード例 #1
0
 public DepressedHandler(DiscordSocketClient client,
                         CommandService commandService,
                         LoggingService loggingService,
                         AutoResponseService autoResponseService,
                         DadService dadService,
                         ReactionService reactionService,
                         ModerationService moderationService,
                         OwoService owoService,
                         CountingService countingService,
                         ConfessionalService confessionalService,
                         IServiceProvider serviceProvider)
 {
     _client       = client;
     _service      = commandService;
     _logger       = loggingService;
     _autoResponse = autoResponseService;
     _dad          = dadService;
     _reaction     = reactionService;
     _moderation   = moderationService;
     _owo          = owoService;
     _counting     = countingService;
     _confessional = confessionalService;
     _provider     = serviceProvider;
 }
コード例 #2
0
        private void InitializeCounting()
        {
            CountingService inner = new CountingService();

            countingService = new SwitchableContingService(settings, inner, inner);
        }