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

flood #15

Open
nim65s opened this issue Dec 4, 2014 · 1 comment
Open

flood #15

nim65s opened this issue Dec 4, 2014 · 1 comment

Comments

@nim65s
Copy link
Member

nim65s commented Dec 4, 2014

What do you think about automatically answering in private when the answer is too large (ie. > 3 lines) ?

Of course, it should be customisable by the modules…

@sleduc
Copy link
Member

sleduc commented Dec 8, 2014

While I am not sure I would use this feature personnaly, it would not be the first "arguably usefull" feature of this bot :)
One simple way to to this would be : https://gist.github.com/sleduc/1df7f86daec44a0469b9 (code patch + configuration example, based on the head of the python3 branch, but this should be easy to adapt for master).

A better (and more interesting) way to do this might be to extend the post_hook mechanism to allow it to have a parameter :
https://gist.github.com/sleduc/22055565c9f168b38ef4

While the first has the advantage of the simplicity of its configuration, the second uses the post_hook mechanism already in place, extending it to have parameters so it could be used in some other context...

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