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

Document notice function #161

Open
technicalpickles opened this issue Feb 1, 2016 · 1 comment
Open

Document notice function #161

technicalpickles opened this issue Feb 1, 2016 · 1 comment

Comments

@technicalpickles
Copy link

In #hubot, @arnaudmm was trying to use thenotice method like:

robot.hear /^!toto$/, (msg) -> robot.adapter.notice "#systest2", "tototo"

This didn't work because the first argument is an envelope object that should have a user or room. This does work:

robot.hear /^!toto$/, (msg) -> robot.adapter.notice {room:"#systest2"}, "tototo"
@technicalpickles
Copy link
Author

cc hubotio/hubot#1036 for more general conversation around supporting adapter-specific responses.

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