bernard357 / shellbot

Fast, simple and lightweight micro bot-framework for Python.
Apache License 2.0
10 stars 3 forks source link

Retry in Input machine is broken #23

Closed guillain closed 7 years ago

guillain commented 7 years ago

No retry action when it should be reached. Tested with participant script and own script.


07:43:40 Bot says: **PO** number please?
07:43:40 - pushing message to mouth queue
07:43:40 Getting bot 
07:43:40 - found matching bot instance
07:43:40 Listener is working on 2
07:43:40 Speaker is working on 1
07:43:40 Posting message
07:43:40 - text: **PO** number please?
07:43:40 - processing a 'join' event
07:43:40 Receiving input
07:43:41 Unable to post message
07:43:41 Starting new HTTPS connection (2): api.ciscospark.com
07:43:41 https://api.ciscospark.com:443 "POST /v1/messages HTTP/1.1" 200 314
07:43:41 - done
07:43:41 Speaker is working on 2
07:43:41 Posting message
07:43:41 - text: Happy to enter 'DigitalException - test'
07:43:42 Added task (0 tasks queued)
07:43:42 POST /hook
07:43:42 Receiving data from webhook
07:43:42 - handling 'messages:created'
07:43:42 https://api.ciscospark.com:443 "POST /v1/messages HTTP/1.1" 200 321
07:43:42 - done
07:43:42 https://api.ciscospark.com:443 "GET /v1/messages/HTTP/1.1" 200 314
07:43:42 - putting message to ears
23.253.85.46 - - [21/Jul/2017:07:43:42 +0200] "POST /hook HTTP/1.1" 200 2 "-" "Squared Scheduler/1.0"
07:43:42 Listener is working on 3
07:43:42 - processing a 'message' event
07:43:42 Dispatching 'message', nothing to do
07:43:42 - sent by me, thrown away
07:43:42 Added task (0 tasks queued)
07:43:42 POST /hook
07:43:42 Receiving data from webhook
07:43:42 - handling 'messages:created'
07:43:42 https://api.ciscospark.com:443 "GET /v1/messages/Nk HTTP/1.1" 200 321
07:43:42 - putting message to ears
23.253.85.46 - - [21/Jul/2017:07:43:42 +0200] "POST /hook HTTP/1.1" 200 2 "-" "Squared Scheduler/1.0"
07:43:42 Listener is working on 4
07:43:42 - processing a 'message' event
07:43:42 Dispatching 'message', nothing to do
07:43:42 - sent by me, thrown away
07:43:45 Transitioning: waiting => delayed
07:43:51 Transitioning: delayed => end
07:43:51 Bot says: Ko, **PO** number has not been provided
07:43:51 - pushing message to mouth queue
``
bernard357 commented 7 years ago

seems to be a bug on line 255, that should look like this:

'action': self.say_retry,

bernard357 commented 7 years ago

will be part of next commits, thanks