Skip to content
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

Can you please make the ttl config option of new Scenes.Stage() work as ttl when idle, not ttl in any case? #1829

Open
Evertt opened this issue Apr 12, 2023 · 2 comments

Comments

@Evertt
Copy link

Evertt commented Apr 12, 2023

Like, I understand that if you've been in a scene for a while, but you haven't interacted with the bot for a while, that then the scene should probably end and go back to the defaultScene (which in my case is no scene).

But to me, that only makes sense if the user has not been interacting with the bot for a while. I would say that as long as the user keeps interacting with the bot, that the scene should be kept alive.

What do you guys think?

@MKRhere
Copy link
Member

MKRhere commented Sep 2, 2023

This would mean Stage needs to store "lastInteracted" somewhere, and compare ttl against that. Doable, but is a breaking change, so let's put this on v5.

@MKRhere MKRhere added this to the v5.0 milestone Sep 2, 2023
@MiroslavGubenko
Copy link

What is ttl?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants