Added group chatters support to websocket.

This commit is contained in:
Tom
2025-01-18 17:33:15 +00:00
parent a49e52a6bb
commit 9f884f71ae
6 changed files with 153 additions and 3 deletions

View File

@ -24,9 +24,12 @@ namespace TwitchChatTTS.Chat.Groups
_groups.Add(group.Name, group);
}
public void Add(long chatter, string groupName)
public void Add(long chatter, string groupId)
{
_chatters.Add(chatter, new List<string>() { groupName });
if (_chatters.TryGetValue(chatter, out var list))
list.Add(groupId);
else
_chatters.Add(chatter, new List<string>() { groupId });
}
public void Add(long chatter, ICollection<string> groupNames)