Skip to content

Commit

Permalink
exit
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobasco99 committed Jun 25, 2024
1 parent c38b325 commit d5475c5
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1469,9 +1469,14 @@ public Response nextQuestion(@FormDataParam("msg") String msg, @FormDataParam("c
}
// check if exit
if (message.equals("!exit") || message.contains("!welcome")){
response.put("message", "Nutze bitte das X im Eingabefeld, um zum Hauptmenü zu gelangen.");
JSONObject end = new JSONObject();
end.put("message", "!exit");
end.put("channel", channel);
end.put("closeContext", true);
response.put("message", "Exit wird ausgeführt.");
response.put("channel", channel);
response.put("closeContext", true);
RESTcallBack(sbfmUrl, end);
return Response.ok().entity(response).build();
}

Expand Down

0 comments on commit d5475c5

Please sign in to comment.