[skipci] Websocket bot: Create new Responder object that will respond to the session's new name

Websocket bot: Create new Responder object that will respond to the session's new name
This commit is contained in:
Anon 2023-11-20 17:50:04 +01:00 committed by GitHub
commit cf6db27088
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -425,6 +425,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));