public TwitchMessageThrottledNotification(ITwitchChannelLink channelLink, string message, int allowedInPeriod, TimeSpan period, int sentMessageCount) : base(channelLink) { Message = message; AllowedInPeriod = allowedInPeriod; Period = period; SentMessageCount = sentMessageCount; }
/// <summary> /// Disconnects channel links on application shutdown /// </summary> public async Task StopAsync() { foreach (KeyValuePair <ITwitchChannelLink, IServiceScope> entry in _links) { ITwitchChannelLink link = entry.Key; await link.DisconnectAsync() .ConfigureAwait(false); } }
public TwitchConnectedNotification(ITwitchChannelLink channelLink, string botUsername, string autoJoinChannel) : base(channelLink) { BotUsername = botUsername; AutoJoinChannel = autoJoinChannel; }
public TwitchJoinedChannelNotification(ITwitchChannelLink channelLink, string channel, string botUsername) : base(channelLink) { Channel = channel; BotUsername = botUsername; }
public TwitchHostLeftNotification(ITwitchChannelLink channelLink, EventArgs eventArgs) : base(channelLink) { EventArgs = eventArgs; }
public TwitchGiftedSubscriptionNotification(ITwitchChannelLink channelLink, string channel, GiftedSubscription giftedSubscription) : base(channelLink) { Channel = channel; GiftedSubscription = giftedSubscription; }
protected TwitchEvent(ITwitchChannelLink channelLink) { ChannelLink = channelLink; }
public TwitchDisconnectedNotification(ITwitchChannelLink channelLink, OnDisconnectedEventArgs disconnectedEventArgs) : base(channelLink) { DisconnectedEventArgs = disconnectedEventArgs; }
public TwitchNewSubscriberNotification(ITwitchChannelLink channelLink, string channel, Subscriber subscriber) : base(channelLink) { Channel = channel; Subscriber = subscriber; }
public static Task SendMessageAsync(this ITwitchChannelLink channelLink, string message, string channel, bool dryRun = false) { channelLink.Client.SendMessage(channel, message, dryRun); return(Task.CompletedTask); }
public TwitchMessageSentNotification(ITwitchChannelLink channelLink, SentMessage sentMessage) : base(channelLink) { SentMessage = sentMessage; }
public TwitchLogNotification(ITwitchChannelLink channelLink, string botUsername, string data, DateTime dateTime) : base(channelLink) { BotUsername = botUsername; Data = data; DateTime = dateTime; }
public TwitchConnectionErrorNotification(ITwitchChannelLink channelLink, string botUsername, ErrorEvent error) : base(channelLink) { BotUsername = botUsername; Error = error; }
public TwitchChannelMessageNotification(ITwitchChannelLink channelLink, ChatMessage chatMessage) : base(channelLink) { ChatMessage = chatMessage; }
public TwitchWhisperMessageNotification(ITwitchChannelLink channelLink, WhisperMessage whisperMessage) : base(channelLink) { WhisperMessage = whisperMessage; }
public TwitchBeingHostedNotification(ITwitchChannelLink channelLink, BeingHostedNotification beingHostedNotification) : base(channelLink) { BeingHostedNotification = beingHostedNotification; }
protected TwitchNotification(ITwitchChannelLink channelLink) : base(channelLink) { }
public TwitchIncorrectLoginNotification(ITwitchChannelLink channelLink, ErrorLoggingInException exception) : base(channelLink) { Exception = exception; }
public TwitchChannelStateChangedNotification(ITwitchChannelLink channelLink, string channel, ChannelState channelState) : base(channelLink) { Channel = channel; ChannelState = channelState; }
public TwitchChatCommandReceivedNotification(ITwitchChannelLink channelLink, ChatCommand command) : base(channelLink) { Command = command; }
public TwitchHostingStoppedNotification(ITwitchChannelLink channelLink, HostingStopped hostingStopped) : base(channelLink) { HostingStopped = hostingStopped; }
public TwitchExistingUsersDetectedNotification(ITwitchChannelLink channelLink, string channel, List <string> users) : base(channelLink) { Channel = channel; Users = users; }
public TwitchErrorNotification(ITwitchChannelLink channelLink, Exception exception) : base(channelLink) { Exception = exception; }
public TwitchChatClearedNotification(ITwitchChannelLink channelLink, string channel) : base(channelLink) { Channel = channel; }