hubot-slack
Advanced tools
Comparing version 2.1.1 to 2.1.2
{ | ||
"name": "hubot-slack", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "Tiny Speck", |
@@ -109,1 +109,11 @@ # hubot-slack | ||
#### Message to a specific room: | ||
Sometime, it's useful to send a message regardless of the channel's activity (like `robot.hear` or `robot.response`). Hubot has [`robot.messageRoom`](https://github.com/github/hubot/blob/v2.8.0/src/robot.coffee#L401-L409) available for this use case. | ||
Slack API uses channel ID's by default, which uses computer-friendly alphanumeric ID. To use the pretty names, prefix it with a hash. | ||
```coffeescript | ||
robot.respond /hello$/i, (msg) -> | ||
robot.messageRoom '#general', 'hello there' | ||
``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
24138
119