Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
hubot-slack
Advanced tools
This is a Hubot adapter to use with Slack.
npm install hubot -g
hubot --create [path_name]
cd [path_name]
npm install hubot-slack --save
./bin/hubot
This is a modified set of instructions based on the instructions on the Hubot wiki.
Make sure hubot-slack
is in your package.json
dependencies
Edit your Procfile
and change it to use the slack
adapter:
web: bin/hubot --adapter slack
Install heroku toolbelt if you haven't already.
heroku create my-company-slackbot
heroku addons:add redistogo:nano
Activate the Hubot service on your "Team Services" page inside Slack.
Add the config variables. For example:
% heroku config:add HEROKU_URL=http://soothing-mists-4567.herokuapp.com
% heroku config:add HUBOT_SLACK_TOKEN=dqqQP9xlWXAq5ybyqKAU0axG
% heroku config:add HUBOT_SLACK_TEAM=myteam
% heroku config:add HUBOT_SLACK_BOTNAME=slackbot
Deploy and start the bot:
% git push heroku master
% heroku ps:scale web=1
Profit!
This adapter uses the following environment variables:
This is the service token you are given when you add Hubot to your Team Services.
This is your team's Slack subdomain. For example, if your team is https://myteam.slack.com/
, you would enter myteam
here.
Optional. What your Hubot is called on Slack. If you entered slackbot
here, you would address your bot like slackbot: help
. Otherwise, defaults to hubot
.
Optional. If you entered blacklist
, Hubot will not post in the rooms specified by HUBOT_SLACK_CHANNELS, or alternately only in those rooms if whitelist
is specified instead. Defaults to blacklist
.
Optional. A comma-separated list of channels to either be blacklisted or whitelisted, depending on the value of HUBOT_SLACK_CHANNELMODE.
Optional. By default, Slack will not linkify channel names (starting with a '#') and usernames (starting with an '@'). You can enable this behavior by setting HUBOT_SLACK_LINK_NAMES to 1. Otherwise, defaults to 0. See Slack API : Message Formatting Docs for more information.
FAQs
A Slack adapter for hubot
The npm package hubot-slack receives a total of 28,452 weekly downloads. As such, hubot-slack popularity was classified as popular.
We found that hubot-slack demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.