try this for word of the day

This commit is contained in:
Jacob Dubin
2026-04-18 18:37:18 -05:00
parent 87936094dd
commit ce53da3921

View File

@@ -45,9 +45,11 @@ public sealed class ResponsePlanToSocketMessagesMapper
? ["main-menu/execute_fun_stuff"] ? ["main-menu/execute_fun_stuff"]
: isYesNoTurn && isYesNoIntent ? [yesNoCreateRule!] : rules; : isYesNoTurn && isYesNoIntent ? [yesNoCreateRule!] : rules;
var entities = ReadEntities(turn, messageType, isYesNoTurn && isYesNoIntent, isWordOfDayLaunch, isWordOfDayGuess, wordOfDayGuess); var entities = ReadEntities(turn, messageType, isYesNoTurn && isYesNoIntent, isWordOfDayLaunch, isWordOfDayGuess, wordOfDayGuess);
var messages = new List<SocketReplyPlan> var messages = new List<SocketReplyPlan>();
if (!isWordOfDayLaunch)
{ {
new(JsonSerializer.Serialize(new messages.AddRange(new SocketReplyPlan(JsonSerializer.Serialize(new
{ {
type = "LISTEN", type = "LISTEN",
transID = transId, transID = transId,
@@ -74,15 +76,15 @@ public sealed class ResponsePlanToSocketMessagesMapper
} }
} }
})), })),
new(JsonSerializer.Serialize(new new SocketReplyPlan(JsonSerializer.Serialize(new
{ {
type = "EOS", type = "EOS",
ts = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds(), ts = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds(),
msgID = CreateHubMessageId(), msgID = CreateHubMessageId(),
transID = transId, transID = transId,
data = new { } data = new { }
})) })));
}; }
if (emitSkillActions && speak is not null) if (emitSkillActions && speak is not null)
{ {