/// <summary> /// Constructor for the Twitch_Helix api helper /// </summary> public HelixHelper( Config.BotConfiguration botConfig, ICommunication communication) { this.botConfig = botConfig; this.communication = communication; }
/// <summary> /// Constructor for the Twitch_Helix api helper /// </summary> public HelixHelper( Config.IBotConfigContainer botConfigContainer, ICommunication communication) { this.communication = communication; botConfig = botConfigContainer.BotConfig; }
public AudioPlayer( Config.BotConfiguration botConfig, ICommunication communication) { this.communication = communication; defaultAudioDevice = botConfig.EffectOutputDevice; }
public CheerHelper( Config.BotConfiguration botConfig, HelixHelper helixHelper) { this.botConfig = botConfig; this.helixHelper = helixHelper; }
public MicrophoneHandler( Config.BotConfiguration botConfig, ICommunication communication) { this.communication = communication; this.botConfig = botConfig; }
public MonitorHub( Config.BotConfiguration botConfig, IMessageAccumulator messsageAccumulator) { this.botConfig = botConfig; this.messsageAccumulator = messsageAccumulator; }
public APIAuthorizationController( Config.BotConfiguration botConfig, ICommunication communication, IMessageAccumulator messageAccumulator) { this.botConfig = botConfig; this.communication = communication; this.messageAccumulator = messageAccumulator; }
public AuthCheckerMiddleware( RequestDelegate next, Config.BotConfiguration botConfig, ICommunication communication) { _next = next; this.botConfig = botConfig; this.communication = communication; }
public SettingsController( Config.BotConfiguration botConfig, Audio.IMicrophoneHandler microphoneHandler, Audio.IAudioPlayer audioPlayer) { this.botConfig = botConfig; this.microphoneHandler = microphoneHandler; this.audioPlayer = audioPlayer; }
public AuthCheckerMiddleware( RequestDelegate next, Config.IBotConfigContainer botConfigContainer, ICommunication communication) { _next = next; botConfig = botConfigContainer.BotConfig; this.communication = communication; }
public SFXController( Config.BotConfiguration botConfig, ISoundEffectSystem soundEffectSystem, IAudioPlayer audioPlayer) { this.botConfig = botConfig; this.soundEffectSystem = soundEffectSystem; this.audioPlayer = audioPlayer; }
public MicController( Config.BotConfiguration botConfig, Audio.IMicrophoneHandler microphoneHandler, Audio.Effects.IAudioEffectSystem audioEffectSystem) { this.botConfig = botConfig; this.microphoneHandler = microphoneHandler; this.audioEffectSystem = audioEffectSystem; }
public MidiKeyboardHandler( Config.BotConfiguration botConfig, ICommunication communication, ISoundEffectSystem soundEffectsSystem) { this.botConfig = botConfig; this.communication = communication; this.soundEffectsSystem = soundEffectsSystem; }
public ShoutOutSystem( Config.BotConfiguration botConfig, ICommunication communication, IUserHelper userHelper, HelixHelper helixHelper) { this.botConfig = botConfig; this.communication = communication; this.userHelper = userHelper; this.helixHelper = helixHelper; }
public TTSSystem( Config.BotConfiguration botConfig, ICommunication communication, IAudioEffectSystem audioEffectSystem, Notifications.ITTSHandler ttsHandler, IServiceScopeFactory scopeFactory) { this.botConfig = botConfig; this.communication = communication; this.audioEffectSystem = audioEffectSystem; this.ttsHandler = ttsHandler; this.scopeFactory = scopeFactory; }
public ChatMessageHandler( Config.BotConfiguration botConfig, ICommunication communication, Notifications.ICheerHandler cheerHandler, IServiceScopeFactory scopeFactory) { this.botConfig = botConfig; this.communication = communication; this.cheerHandler = cheerHandler; this.scopeFactory = scopeFactory; }
public QuoteSystem( Config.BotConfiguration botConfig, ICommunication communication, IServiceScopeFactory scopeFactory) { this.botConfig = botConfig; this.communication = communication; this.scopeFactory = scopeFactory; randomizer = new Random(); fakeNewsBag.AutoRefill = true; }
public PubSubClient( Config.BotConfiguration botConfig, ICommunication communication, IRedemptionSystem redemptionHandler, ErrorHandler errorHandler) { this.botConfig = botConfig; this.communication = communication; this.errorHandler = errorHandler; this.redemptionHandler = redemptionHandler; pingMessage = new BasicPubSubMessage("PING"); pongMessage = new BasicPubSubMessage("PONG"); }
public ChatLogger( Config.IBotConfigContainer botConfigContainer, ICommunication communication) { botConfig = botConfigContainer.BotConfig; lineChannel = Channel.CreateUnbounded <string>(); chatLog = new Lazy <Logs.LocalLogger>(() => new Logs.LocalLogger("ChatLogs", "chat")); communication.SendMessageHandlers += WriteOutgoingMessage; communication.SendWhisperHandlers += WriteOutgoingWhisper; communication.ReceiveMessageLoggers += WriteIncomingMessage; HandleLines(); }
public FollowSubscriber( Config.BotConfiguration botConfig, Config.IExternalWebAccessConfiguration webAccessConfiguration, ICommunication communication, Notifications.IFollowerHandler followerHandler, HelixHelper helixHelper, IServiceScopeFactory scopeFactory) { this.botConfig = botConfig; webAccessConfig = webAccessConfiguration; this.communication = communication; this.followerHandler = followerHandler; this.helixHelper = helixHelper; this.scopeFactory = scopeFactory; }
public TestCommandSystem( Config.BotConfiguration botConfig, ICommunication communication, Notifications.ISubscriptionHandler subscriptionHandler, Notifications.IRaidHandler raidHandler, Notifications.ICheerHandler cheerHandler, Database.IUserHelper userHelper) { this.botConfig = botConfig; this.communication = communication; this.subscriptionHandler = subscriptionHandler; this.raidHandler = raidHandler; this.cheerHandler = cheerHandler; this.userHelper = userHelper; }
public StreamChangeSubscriber( Config.BotConfiguration botConfig, Config.IExternalWebAccessConfiguration webAccessConfiguration, ICommunication communication, HelixHelper helixHelper, IEnumerable <IStreamLiveListener> streamLiveListeners, IEnumerable <IStreamDetailListener> streamDetailListeners) { this.botConfig = botConfig; webAccessConfig = webAccessConfiguration; this.communication = communication; this.helixHelper = helixHelper; this.streamLiveListeners = streamLiveListeners.ToArray(); this.streamDetailListeners = streamDetailListeners.ToArray(); }
public CommandSystem( Config.BotConfiguration botConfig, ICommunication communication, ErrorHandler errorHandler, IEnumerable <ICommandContainer> commandContainers) { this.botConfig = botConfig; this.communication = communication; this.errorHandler = errorHandler; this.commandContainers = commandContainers.ToArray(); foreach (ICommandContainer commandContainer in this.commandContainers) { commandContainer.RegisterCommands(commandHandlers, helpFunctions, setFunctions, getFunctions); } communication.ReceiveMessageHandlers += HandleChatMessage; }
public BasicView( Config.IBotConfigContainer botConfigContainer, ICommunication communication, ApplicationManagement applicationManagement) { botConfig = botConfigContainer.BotConfig; this.communication = communication; this.applicationManagement = applicationManagement; consoleChannel = Channel.CreateUnbounded <ConsoleKeyInfo>(); LaunchListeners(); communication.ReceivePendingNotificationHandlers += ReceivePendingNotification; communication.ReceiveEventHandlers += ReceiveEventHandler; communication.ReceiveMessageLoggers += ReceiveMessageHandler; communication.SendMessageHandlers += SendPublicChatHandler; communication.SendWhisperHandlers += SendWhisperHandler; communication.DebugMessageHandlers += DebugMessageHandler; }
public BasicView( Config.BotConfiguration botConfig, ICommunication communication, ApplicationManagement applicationManagement) { this.botConfig = botConfig; this.communication = communication; this.applicationManagement = applicationManagement; consoleChannel = Channel.CreateUnbounded <ConsoleKeyInfo>(); LaunchListeners(); communication.ReceivePendingNotificationHandlers += ReceivePendingNotification; communication.ReceiveEventHandlers += ReceiveEventHandler; communication.ReceiveMessageLoggers += ReceiveMessageHandler; communication.SendMessageHandlers += SendPublicChatHandler; communication.SendWhisperHandlers += SendWhisperHandler; communication.DebugMessageHandlers += DebugMessageHandler; communication.SendDebugMessage("BasicView Connected. Listening for Ctrl+Q to quit gracefully.\n"); }
public IrcClient( Config.IBotConfigContainer botConfigContainer, IIRCLogger ircLogger, Chat.IChatMessageHandler chatMessageHandler, INoticeHandler noticeHandler, ICommunication communication, ErrorHandler errorHandler) { botConfig = botConfigContainer.BotConfig; this.errorHandler = errorHandler; this.ircLogger = ircLogger; this.chatMessageHandler = chatMessageHandler; this.noticeHandler = noticeHandler; this.communication = communication; username = botConfig.BotName.ToLower(); channel = botConfig.Broadcaster.ToLower(); if (string.IsNullOrEmpty(username)) { throw new ArgumentException("Bot Name cannot be empty."); } if (string.IsNullOrEmpty(channel)) { throw new ArgumentException("Bot Channel cannot be empty."); } Channel <string> chatChannel = Channel.CreateUnbounded <string>(); outgoingChatWriter = chatChannel.Writer; outgoingChatReader = chatChannel.Reader; exhaustiveLogging = botConfig.ExhaustiveIRCLogging; communication.SendMessageHandlers += SendMessage; communication.SendWhisperHandlers += SendWhisper; }