Added stores for connections. Added requests for groups, group chatters, group permissions & connections. Using TTS Voice State store.

This commit is contained in:
Tom
2025-01-17 04:32:31 +00:00
parent 422cd91db2
commit 6d955f245a
29 changed files with 759 additions and 67 deletions

View File

@@ -23,15 +23,17 @@ namespace HermesSocketServer.Requests
string voiceName = data["voice"].ToString()!;
string voiceId = data["voiceid"].ToString()!;
var result = _voices.Set(voiceId, new TTSVoice()
var voice = new TTSVoice()
{
Id = voiceId,
Name = voiceName
});
};
var result = _voices.Modify(voiceId, voice);
if (result)
{
_logger.Information($"Updated voice's [voice id: {voiceId}] name [new name: {voiceName}]");
return Task.FromResult(RequestResult.Successful(null));
_logger.Information($"Updated voice's name on channel [voice id: {voiceId}][name: {voiceName}][channel: {channel.Id}]");
return Task.FromResult(RequestResult.Successful(voice));
}
return Task.FromResult(RequestResult.Failed("Something went wrong when updating the cache."));
}