Socket
Socket
Sign inDemoInstall

hubot-slack

Package Overview
Dependencies
0
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.1 to 2.1.2

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc