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

!learn should tell what the old factoid was, or that there was none. #65

Open
mk-pmb opened this issue Sep 9, 2017 · 4 comments
Open

Comments

@mk-pmb
Copy link

mk-pmb commented Sep 9, 2017

I just forgot to check the factoid name, so to avoid data loss by fallible humans, let's make !learn state whether there was a factoid by that name, and what it was. Maybe even a special value <<restore>> to restore the previous value for the factoid, at least for a few minutes after the !learn. (An extra restore would decouple this problem from problems of maximum message length.)

@dsamarin
Copy link
Member

dsamarin commented Sep 9, 2017

Maybe !undo and !restore implementations would be a good solution too

@mk-pmb
Copy link
Author

mk-pmb commented Sep 9, 2017

Yeah, but a new command would reduce the factoid namespace even more.

@dsamarin
Copy link
Member

dsamarin commented Sep 9, 2017

How about adding a learn command? !learn undo myfactoid and !learn redo myfactoid.. Syntax would roughly be learn ( [alias|undo|redo] foo = bar | foo =~ s/expression/replace/gi )

@mk-pmb
Copy link
Author

mk-pmb commented Sep 9, 2017

Sounds good! 👍

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

No branches or pull requests

2 participants