public SingleStreamerModule(
     ISingleStreamerSettingsRepository singleStreamerSettingsRepository,
     IGuildSettingsRepository guildSettingsRepoistory,
     TwitchService twitchService
     )
 {
     _singleStreamerSettingsRepository = singleStreamerSettingsRepository;
     _guildSettingsRepoistory          = guildSettingsRepoistory;
     _twitchService = twitchService;
 }
Esempio n. 2
0
        public SingleStreamerService(
            ILogger <SingleStreamerService> logger,
            ISingleStreamerSettingsRepository singleStreamerSettingsRepository,
            IEnumerable <BotDiscordSocketClient> botDiscordSocketClients,
            TwitchService twitchService,
            Random random
            )
        {
            _logger = logger;
            _singleStreamerSettingsRepository = singleStreamerSettingsRepository;
            _botDiscordSocketClients          = botDiscordSocketClients;
            _twitchService = twitchService;
            _random        = random;

            _timer           = new System.Timers.Timer(2 * 60 * 1000);
            _timer.Elapsed  += timer_Elapsed;
            _timer.AutoReset = true;

            _channelMainMessages = new ConcurrentDictionary <ulong, Message>();
            _liveMessages        = new ConcurrentDictionary <ulong, Message>();
        }