errbot
errbot copied to clipboard
Handle already running flow for the same user
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