public GiveVipCommand( IVipApiClient vipApiClient, ILogger <GiveVipCommand> logger) { _vipApiClient = vipApiClient; _logger = logger; }
private readonly string _developmentRoomId = string.Empty; // Only for use in debug mode public ChatbotService(ICommandHelper commandHelper, ITwitchClientFactory twitchClientFactory, TwitchPubSub pubsub, ITwitchLiveStreamMonitorFactory twitchLiveStreamMonitorFactory, IVipApiClient vipApiClient, IConfigService configService, IStreamStatusApiClient streamStatusApiClient, ISecretService secretService, ILogger <ChatbotService> logger) { _commandHelper = commandHelper; _pubsub = pubsub; _twitchLiveStreamMonitorFactory = twitchLiveStreamMonitorFactory; _vipApiClient = vipApiClient; _configService = configService; _streamStatusApiClient = streamStatusApiClient; _secretService = secretService; _logger = logger; _streamerChannel = _configService.Get <string>("StreamerChannel"); _isDevelopmentBuild = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") == "Development" || Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") == "Local"; _client = twitchClientFactory.Get(); _client.OnJoinedChannel += OnJoinedChannel; _client.OnChatCommandReceived += OnCommandReceived; _client.OnCommunitySubscription += OnSubBomb; _client.OnBeingHosted += OnBeingHosted; _client.OnRaidNotification += OnRaidNotification; _client.OnDisconnected += OnDisconnected; _client.OnError += OnError; _client.OnConnectionError += OnConnectionError; _client.Connect(); _liveStreamMonitor = _twitchLiveStreamMonitorFactory.Get(); _liveStreamMonitor.SetChannelsByName(new List <string> { _streamerChannel }); _liveStreamMonitor.OnStreamOnline += OnStreamOnline; _liveStreamMonitor.OnStreamOffline += OnStreamOffline; _liveStreamMonitor.OnServiceStarted += OnStreamMonitorStarted; //this.liveStreamMonitor.OnStreamUpdate += OnStreamUpdate; _liveStreamMonitor.Start(); _pubsub.OnPubSubServiceConnected += OnPubSubConnected; _pubsub.OnBitsReceived += OnBitsReceived; _pubsub.OnListenResponse += OnListenResponse; _pubsub.OnChannelSubscription += OnSub; _pubsub.Connect(); }
public ChatbotController( IModService modService, IPlaylistApiClient playlistApiClient, IVipApiClient vipApiClient, ISearchApiClient searchApiClient, ILogger <ChatbotController> logger) { this._modService = modService; _playlistApiClient = playlistApiClient; _vipApiClient = vipApiClient; _searchApiClient = searchApiClient; _logger = logger; }
public GiftVipCommand(IVipApiClient vipApiClient) { _vipApiClient = vipApiClient; }
public GiftedVipsCommand(IVipApiClient vipApiClient) { _vipApiClient = vipApiClient; }
public ClaimVipCommand(IVipApiClient vipApiClient) { _vipApiClient = vipApiClient; }
public MyVipsCommand(IVipApiClient vipApiClient) { _vipApiClient = vipApiClient; }
public ClaimAllVipsCommand(IVipApiClient vipApiClient) { _vipApiClient = vipApiClient; }
public MyBytesCommand(IVipApiClient vipApiClient) { _vipApiClient = vipApiClient; }