errbot icon indicating copy to clipboard operation
errbot copied to clipboard

Handle already running flow for the same user

Open etshi opened this issue 6 years ago • 0 comments

In order to let us help you better, please fill out the following fields as best you can:

I am...

  • [ ] Reporting a bug
  • [ ] Suggesting a new feature
  • [ ] Requesting help with running my bot
  • [X] Requesting help writing plugins
  • [ ] Here about something else

I am running...

  • Errbot version: 9.9.9
  • OS version:
  • Python version: 3.6
  • Using a virtual environment: yes

Issue description

When in the middle of a flow with auto triggered first_step, if I used the command that triggered the first step. The first step still reruns. My question is How can I check if a flow from the same user is already running, so I can end it in the above case?

Steps to reproduce

Flow: !step_one !steptwo End

step_one is auto triggered and depending on the input from user either end or move to step_two. on step_one just use the same command that triggers step_one again

Additional info

etshi avatar Dec 17 '19 10:12 etshi