Create new Responder object that will repond to the session's new name

This commit is contained in:
zorua162 2023-11-19 21:07:09 +00:00
parent eb8ccc43d7
commit d49a597671

View file

@ -420,6 +420,9 @@ public class WebSocketBot : ChatBot
_authenticatedSessions.Add(newId);
}
// Update the responder to the new session id
responder = new WsCommandResponder(this, newId, cmd.Command, cmd.RequestId);
responder.SendSuccessResponse(
responder.Quote("The session ID was successfully changed to: '" + newId + "'"), true);
LogToConsole(string.Format(Translations.bot_WebSocketBot_session_id_changed, sessionId, newId));