326 ordering bug (#364)

* Possible fix for #326

* Add a ConversationAbandonedListener
This commit is contained in:
tastybento 2024-10-23 21:25:14 -07:00 committed by GitHub
parent 12f3933ce3
commit 52864d6329
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -119,6 +119,9 @@ public class ConversationUtils
withFirstPrompt(confirmationPrompt). withFirstPrompt(confirmationPrompt).
withLocalEcho(false). withLocalEcho(false).
withTimeout(90). withTimeout(90).
// Use null value in consumer to detect if user has abandoned conversation.
addConversationAbandonedListener(ConversationUtils.getAbandonListener(consumer, user))
.
buildConversation(user.getPlayer()). buildConversation(user.getPlayer()).
begin(); begin();
} }