public void HandleTwitchCommand(string spokenText) { if (spokenText.IncludesTheWords("start", "follower", "only") || spokenText.IncludesTheWords("start", "followers", "only")) { _client.FollowersOnlyOn(_twitchBotSettings.ChannelName, TEN_MINUTES); } else if (spokenText.IncludesTheWords("stop", "follower", "only") || spokenText.IncludesTheWords("stop", "followers", "only")) { _client.FollowersOnlyOff(_twitchBotSettings.ChannelName); } else if (spokenText.IncludesTheWords("start", "sub", "only") || spokenText.IncludesTheWords("start", "subs", "only") || spokenText.IncludesTheWords("start", "subscriber", "only") || spokenText.IncludesTheWords("start", "subscribers", "only")) { _client.SubscribersOnlyOn(_twitchBotSettings.ChannelName); } else if (spokenText.IncludesTheWords("stop", "sub", "only") || spokenText.IncludesTheWords("stop", "subs", "only") || spokenText.IncludesTheWords("stop", "subscriber", "only") || spokenText.IncludesTheWords("stop", "subscribers", "only")) { _client.SubscribersOnlyOff(_twitchBotSettings.ChannelName); } else if (spokenText.IncludesTheWords("start", "slow", "mode")) { _client.SlowModeOn(_twitchBotSettings.ChannelName, TEN_MINUTES); } else if (spokenText.IncludesTheWords("stop", "slow", "mode")) { _client.SlowModeOff(_twitchBotSettings.ChannelName); } else if (spokenText.IncludesTheWords("clear", "chat")) { _client.ClearChat(_twitchBotSettings.ChannelName); } else { HandleCustomCommands(spokenText); } }
public async Task FollowersOff(string channelName) { _twitchClient.FollowersOnlyOff(channelName); await Task.CompletedTask; }
internal static void FollowersOnlyOff(TwitchClient client) { client.FollowersOnlyOff(client.GetJoinedChannel(client.JoinedChannels[0].Channel)); }