Esempio n. 1
0
        private Timer _periodicTask; // Never read, just kept here for GC reasons

        public Bot(DiscordShardedClient client, ILifetimeScope services, ILogger logger, PeriodicStatCollector collector, IMetrics metrics)
        {
            _client    = client;
            _services  = services;
            _collector = collector;
            _metrics   = metrics;
            _logger    = logger.ForContext <Bot>();
        }
Esempio n. 2
0
 public Bot(IServiceProvider services, IDiscordClient client, IMetrics metrics, PeriodicStatCollector collector, ILogger logger)
 {
     _services  = services;
     _client    = client as DiscordShardedClient;
     _metrics   = metrics;
     _collector = collector;
     _logger    = logger.ForContext <Bot>();
 }
Esempio n. 3
0
 public Bot(ILifetimeScope services, IDiscordClient client, IMetrics metrics, PeriodicStatCollector collector, ILogger logger)
 {
     _pl        = new PKPerformanceEventListener();
     _services  = services;
     _client    = client as DiscordShardedClient;
     _metrics   = metrics;
     _collector = collector;
     _logger    = logger.ForContext <Bot>();
 }
Esempio n. 4
0
        private Timer _periodicTask; // Never read, just kept here for GC reasons

        public Bot(DiscordShardedClient client, ILifetimeScope services, ILogger logger, PeriodicStatCollector collector, IMetrics metrics,
                   ErrorMessageService errorMessageService, CommandMessageService commandMessageService)
        {
            _client                = client;
            _logger                = logger.ForContext <Bot>();
            _services              = services;
            _collector             = collector;
            _metrics               = metrics;
            _errorMessageService   = errorMessageService;
            _commandMessageService = commandMessageService;
        }