Skip to content

Commit

Permalink
Add a ConversationAbandonedListener
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Oct 24, 2024
1 parent f929e7d commit 7ae721a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ public String getPromptText(@NotNull ConversationContext conversationContext)
withFirstPrompt(confirmationPrompt).
withLocalEcho(false).
withTimeout(90).
// Use null value in consumer to detect if user has abandoned conversation.
addConversationAbandonedListener(ConversationUtils.getAbandonListener(consumer, user))
.
buildConversation(user.getPlayer()).
begin();
}
Expand Down

0 comments on commit 7ae721a

Please sign in to comment.