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

clojurebot-like factoids to replace the whatis plugin #58

Open
Raynes opened this issue Dec 2, 2011 · 0 comments
Open

clojurebot-like factoids to replace the whatis plugin #58

Raynes opened this issue Dec 2, 2011 · 0 comments

Comments

@Raynes
Copy link
Owner

Raynes commented Dec 2, 2011

Challenging because coming up with a syntax is difficult. Your first inclination is to allow for factoid commands/queries to be like lazybot: foo is bar but that doesn't really work in lazybot. The problem is that command prefixes are arbitary strings. This means that lazybot: can actually be a command prefix in which case whatever foo is could be a command, in which case the commands and hooks would clash. I guess one option here is to modify the command/hook system so that hooks only trigger if a command isn't also triggered, but I don't want to do that. I think that the best compromise here is to just make the factoid system be a command.
e.g.

$fact foo is bar
$whatis foo
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

1 participant