public ProcessUserDataService(IMessageParser messageParser, IOptions <TwitchIrcConfig> twitchConfigOptions, ITwitchIrcClient twitchIrcClient, ITwitchApiUserClient twitchApiUserClient, ITwitchApiFollowerClient twitchApiFollowerClient) { _twitchApiFollowerClient = twitchApiFollowerClient; _twitchApiUserClient = twitchApiUserClient; _twitchIrcClient = twitchIrcClient; _twitchIrcConfig = twitchConfigOptions.Value; _messageParser = messageParser; }
public WauwBot(ITwitchIrcClient client, IConfiguration configuration) { Client = client; InitializeComponent(); Running = true; client.Connect(); var thread = new Thread(ReadMessages); thread.Start(); client.SendRawMessage(IrcCommandsFactory.CapReq(configuration.TwitchIrcMembershipCapability)); client.SendRawMessage(IrcCommandsFactory.Join(configuration.TwitchIrcNickname)); }
public WauwBot(ITwitchIrcClient client, IConfiguration configuration) { Client = client; InitializeComponent(); Running = true; client.Connect(); var thread = new Thread(ReadMessages); thread.Start(); client.SendRawMessage(IrcCommandsFactory.CapReq(configuration.TwitchIrcMembershipCapability)); client.SendRawMessage(IrcCommandsFactory.Join(configuration.TwitchIrcNickname)); }
// Empty constructor makes instance of Thread public PingSender(ITwitchIrcClient twitchIrcClient) { _twitchIrcClient = twitchIrcClient; pingSender = new Thread(new ThreadStart(this.Run)); }