示例#1
0
 public FeaturedChatModule(
     IFeaturedChatSettingsRepository featuredChatSettingsRepository,
     IGuildSettingsRepository guildSettingsRepoistory,
     GitHubService gitHubService,
     StringCipher cypher
     )
 {
     _featuredChatSettingsRepository = featuredChatSettingsRepository;
     _guildSettingsRepoistory        = guildSettingsRepoistory;
     _gitHubService = gitHubService;
     _cypher        = cypher;
 }
示例#2
0
        public FeaturedChatService(
            ILogger <FeaturedChatService> logger,
            IFeaturedChatSettingsRepository featuredChatSettingsRepository,
            IEnumerable <BotDiscordSocketClient> botDiscordSocketClients
            )
        {
            _logger = logger;
            _featuredChatSettingsRepository = featuredChatSettingsRepository;
            _botDiscordSocketClients        = botDiscordSocketClients;
            _featuredChatConnections        = new List <FeaturedChatConnection>();

            _timer           = new System.Timers.Timer(30000);
            _timer.Elapsed  += _timer_Elapsed;
            _timer.AutoReset = true;
        }