Fixed command permissions. Moved to using Twitch's EventSub via websockets. Cleaned some code up. Added detection for subscription messages (no TTS), message deletion, full or partial chat clear. Removes messages from TTS queue if applicable. Added command aliases for static parameters. Word filters use compiled regex if possible. Fixed TTS voice deletion.
This commit is contained in:
@ -1,17 +1,18 @@
|
||||
using TwitchChatTTS.Hermes.Socket;
|
||||
using TwitchLib.Client.Models;
|
||||
using TwitchChatTTS.Twitch.Socket.Messages;
|
||||
using static TwitchChatTTS.Chat.Commands.TTSCommands;
|
||||
|
||||
namespace TwitchChatTTS.Chat.Commands
|
||||
{
|
||||
public interface IChatCommand {
|
||||
public interface IChatCommand
|
||||
{
|
||||
string Name { get; }
|
||||
void Build(ICommandBuilder builder);
|
||||
}
|
||||
|
||||
public interface IChatPartialCommand {
|
||||
public interface IChatPartialCommand
|
||||
{
|
||||
bool AcceptCustomPermission { get; }
|
||||
bool CheckDefaultPermissions(ChatMessage message);
|
||||
Task Execute(IDictionary<string, string> values, ChatMessage message, HermesSocketClient client);
|
||||
Task Execute(IDictionary<string, string> values, ChannelChatMessage message, HermesSocketClient client);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user