Leonel Câmara <[email protected]> schrieb am Mo., 9. Juli 2018, 12:39:

> Does the chatbot keeps logs of the conversations it's having?
>
No, there are no logs. The message occurs independent from the
conversation. The scheduled function, which wants to send a message can
detect whether there is a conversation. Therefore I am looking for
something which allows the running (scheduled) function to postpone itself.

Just check the log and if the last messages was in the last 2 minutes have
> the function reschedule itself, note that you can scheduler tasks in the
> scheduler inside scheduler tasks.
>

You mean: the "message function" should schedule a copy of itself with 2
minutes delay and return? I hoped that there would be a more elegant
solution.

Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to