コード例 #1
0
 public MessageHandler(IRankManager rankManager, IDataAccess dataAccess, ITwitchConnections twitchConnections,
                       IConfiguration configuration, IDataProcessor dataProcessor, IFilterManager filterManager,
                       IPresenceCounter presenceCounter, ITalkerCounter talkerCounter)
 {
     _rankManager      = rankManager;
     _dataAccess       = dataAccess;
     _twitchConnection = twitchConnections;
     _configuration    = configuration;
     _dataProcessor    = dataProcessor;
     _filterManager    = filterManager;
     _presenceCounter  = presenceCounter;
     _talkerCounter    = talkerCounter;
     EventInitializer();
     TimedMessageInitializer();
 }
コード例 #2
0
 public TwitchChatBot(ITwitchConnections twitchConnection, IDataAccess dataAccess, IDataProcessor dataProcessor,
                      IConfiguration configuration, IApiRetriever apiRetriever, IPresenceCounter presenceCounter,
                      CommandsContainer commandsContainer, MessageHandler messageHandler)
 {
     _twitchConnection  = twitchConnection;
     _dataProcessor     = dataProcessor;
     _dataAccess        = dataAccess;
     _configuration     = configuration;
     _commandsContainer = commandsContainer;
     _messageHandler    = messageHandler;
     presenceCounter.MakePresent(apiRetriever.TwitchChannelId);
     Connect();
 }