Add notes for #44

This commit is contained in:
Ruben van de Ven 2019-05-07 14:35:52 +02:00
parent 02dcf17858
commit c64e2328e0

View file

@ -697,6 +697,8 @@ class Diversion(object):
Participant doesn't speak for x consecutive replies (has had timeout)
"""
':type story: Story'
# TODO: disable check on msgFrom/msgTo to allow for own timing (2 sec)
# use story.currentReply.getTimeSinceLastUtterance() > 2
if story.currentDiversion or not msgFrom or not msgTo:
# don't do nested diversions
# if we remove this, don't forget to double check 'returnMessage'
@ -726,6 +728,7 @@ class Diversion(object):
story.logger.critical(f"Not a valid message id for diversion: {self.params['msgId']}")
return
# TODO: pick the direction with timeout as next Message.
self.returnMessage = msgTo
if self.params['returnAfterStrand']: