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

[Feature] [Generic] Stateful responses? #122

Open
huang-jy opened this issue Dec 30, 2019 · 3 comments
Open

[Feature] [Generic] Stateful responses? #122

huang-jy opened this issue Dec 30, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@huang-jy
Copy link

Is it possible to have the bot "statefully" respond to rules, by which I mean interact several times with it and it remembers your previous answers?

For example:

bot> announce
which room did you want to announce to?
bot> general
announce to room #general, okay. What message?
bot> restarting bot in 5 minutes
announce "restarting bot in 5 minutes" to room #general, is that correct?
bot> yes
announce sent

I'm thinking using variables might work, but do they scope across rules?

@wass3r
Copy link
Collaborator

wass3r commented Dec 31, 2019

Unfortunately, there is nothing built-in currently. We had discussed a solution for this at some point. For now you could maybe pass the query to a script in a language of your choosing that's backed by a store/DB of some sort. We don't have examples for this :(

@huang-jy
Copy link
Author

I guess there would be many ways to implement this. Shall I leave this open so you can flag as a feature request, or shall I close?

@wass3r wass3r added the enhancement New feature or request label Jan 1, 2020
@wass3r
Copy link
Collaborator

wass3r commented Jan 1, 2020

We can leave it open as a feature request. Few things to consider for sure. Thanks for the submission.

@wass3r wass3r pinned this issue Jul 21, 2021
@wass3r wass3r unpinned this issue Jul 21, 2021
@wass3r wass3r added feature request enhancement New feature or request and removed enhancement New feature or request feature request labels Nov 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants