
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
hubot-incoming-webhook
Advanced tools
A (very simple) hubot script for sending messages to a channel/room via HTTP POST requests to your bot.
Install script package in your bot's repository:
npm install --save hubot-incoming-webhook
Add to external_scripts.json
:
[
"incoming-webhook"
]
Set the WEBHOOK TOKEN
environment variable to a secret string of your choice
when running the bot. It will be used in the incoming webhook URL.
The URL is constructed as follows: http(s)://<host>:<port>/incoming/<your-secret-token>
Just POST a simple JSON body to the webhook URL.
Key | Value |
---|---|
room | (string) The room/channel you want to post to. Include the hash character for IRC. |
message | (string/array) The message you want to post. Can be an array for multiple lines. |
Example:
curl -X POST -H "Content-Type: application/json" \
-d '{"room": "#kosmos", "message": "ohai"}' \
http://127.0.0.1:8080/incoming/your-secret-token
Key | Description |
---|---|
WEBHOOK_TOKEN | A string for building your secret webhook URL |
FAQs
Accept incoming Webhooks to write messages to a room/channel
The npm package hubot-incoming-webhook receives a total of 1 weekly downloads. As such, hubot-incoming-webhook popularity was classified as not popular.
We found that hubot-incoming-webhook demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.