-
-
Notifications
You must be signed in to change notification settings - Fork 844
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dev - IdleState #852
Dev - IdleState #852
Conversation
sticker,image,video to _event_media
Ahora al momento de recibir un mensaje se comprueba el estado de la conexión con la base de datos MySQL. En el caso en que se haya desconectado, se llama de nuevo a la función que realiza la conexión.
…n-timeout fix(database): MySQL conection timeout
IdleState - Set a idle time to wait a user answer, after this send a auto message of inactivity No have breaking changes
Changed a little code and removed unnecessary codes No breaking changes
Example code and video updated. |
🔥🔥 ver implementackon aquí https://github.com/codigoencasa/bot-whatsapp/blob/main/__test__/0.2.1-case.test.js |
FC
https://github.com/codigoencasa/bot-whatsapp/blob/main/__test__/0.2.1-case.test.js |
Gracias funciona perfecto @leifermendez , podriamos hacer algo como esto: |
Que tipo de Pull Request es?
Descripción
IdleState: Managing Inactivity in Chatbots Efficiently
IdleState is an effective solution for handling user inactivity in chatbots. It offers the following essential functions:
setIdleTime(number): Set the maximum idle time in seconds.
start(): Start the inactivity count from the bot's first response.
on(): Monitor the end of the count using the "idle" listener and execute a callback when necessary.
restart(): Restart the inactivity count as needed.
stop(): Stop the count when it is no longer necessary.
With these features, IdleState allows efficient management of user inactivity, making interactions with chatbots more agile and adaptable to the specific needs of your chatbot.
Example:
Video Example:
https://vimeo.com/864136855/afe2980760