Skip to content

Commit

Permalink
Update PetStoreAssistantBot.java
Browse files Browse the repository at this point in the history
  • Loading branch information
chtrembl committed Jan 4, 2024
1 parent 6ef0746 commit ed62a94
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,12 @@ public CompletableFuture<Void> onTurn(TurnContext turnContext) {
protected CompletableFuture<Void> onMessageActivity(TurnContext turnContext) {
String text = turnContext.getActivity().getText().toLowerCase().trim();

//XKQtkRt4hDBdwzwP2bwhs-us|0000014
String id = turnContext.getActivity().getId().trim();
if(id.contains("-"))
{
id = id.substring(0, id.indexOf("-"));
}

LOGGER.info("onMessageActivity: text {} id {} ", text, id);

Expand Down

0 comments on commit ed62a94

Please sign in to comment.