{"action":"created","issue":{"url":"https://api.github.com/repos/nandub/hubot-irc/issues/161","labels_url":"https://api.github.com/repos/nandub/hubot-irc/issues/161/labels{/name}","comments_url":"https://api.github.com/repos/nandub/hubot-irc/issues/161/comments","events_url":"https://api.github.com/repos/nandub/hubot-irc/issues/161/events","html_url":"https://github.com/nandub/hubot-irc/issues/161","id":130396293,"number":161,"title":"Document `notice` function","user":{"login":"technicalpickles","id":159,"avatar_url":"https://avatars.githubusercontent.com/u/159?v=3","gravatar_id":"","url":"https://api.github.com/users/technicalpickles","html_url":"https://github.com/technicalpickles","followers_url":"https://api.github.com/users/technicalpickles/followers","following_url":"https://api.github.com/users/technicalpickles/following{/other_user}","gists_url":"https://api.github.com/users/technicalpickles/gists{/gist_id}","starred_url":"https://api.github.com/users/technicalpickles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/technicalpickles/subscriptions","organizations_url":"https://api.github.com/users/technicalpickles/orgs","repos_url":"https://api.github.com/users/technicalpickles/repos","events_url":"https://api.github.com/users/technicalpickles/events{/privacy}","received_events_url":"https://api.github.com/users/technicalpickles/received_events","type":"User","site_admin":true},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-01T15:40:44Z","updated_at":"2016-02-01T15:41:18Z","closed_at":null,"body":"In #hubot, @arnaudmm was trying to use the`notice` method like:\r\n\r\n```coffeescript\r\nrobot.hear /^!toto$/, (msg) -> robot.adapter.notice \"#systest2\", \"tototo\"\r\n```\r\n\r\nThis didn't work because the first argument is an `envelope` object that should have a user or room. This does work:\r\n\r\n```coffeescript\r\nrobot.hear /^!toto$/, (msg) -> robot.adapter.notice {room:\"#systest2\"}, \"tototo\"\r\n```"},"comment":{"url":"https://api.github.com/repos/nandub/hubot-irc/issues/comments/178030259","html_url":"https://github.com/nandub/hubot-irc/issues/161#issuecomment-178030259","issue_url":"https://api.github.com/repos/nandub/hubot-irc/issues/161","id":178030259,"user":{"login":"technicalpickles","id":159,"avatar_url":"https://avatars.githubusercontent.com/u/159?v=3","gravatar_id":"","url":"https://api.github.com/users/technicalpickles","html_url":"https://github.com/technicalpickles","followers_url":"https://api.github.com/users/technicalpickles/followers","following_url":"https://api.github.com/users/technicalpickles/following{/other_user}","gists_url":"https://api.github.com/users/technicalpickles/gists{/gist_id}","starred_url":"https://api.github.com/users/technicalpickles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/technicalpickles/subscriptions","organizations_url":"https://api.github.com/users/technicalpickles/orgs","repos_url":"https://api.github.com/users/technicalpickles/repos","events_url":"https://api.github.com/users/technicalpickles/events{/privacy}","received_events_url":"https://api.github.com/users/technicalpickles/received_events","type":"User","site_admin":true},"created_at":"2016-02-01T15:41:18Z","updated_at":"2016-02-01T15:41:18Z","body":"cc https://github.com/github/hubot/issues/1036 for more general conversation around supporting adapter-specific responses."}}