
Security News
AI Agent Submits PR to Matplotlib, Publishes Angry Blog Post After Rejection
After Matplotlib rejected an AI-written PR, the agent fired back with a blog post, igniting debate over AI contributions and maintainer burden.
slack-micro
Advanced tools
The goal of this project was to build a node.js client that can be dropped into serverless functions without requiring a massive dependency tree. This client covers two main scenarios: making requests and handling responses.
npm i slack-micro --save
slack('method name or url', {payload}) // returns a promise
let slack = require('slack-micro');
let message = {
unfurl_links: true,
channel: 'C1QD223DS1',
token: 'xoxb-12345678900-ABCD1234567890',
text: "I am a test message http://slack.com",
attachments: [{
text: "And here's an attachment!"
}]
}
// send message to any Slack endpoint
slack('chat.postMessage', message).then(response => {
// Success!
});
// respond to webhooks
slack('https://hooks.slack.com/services/T0000/B000/XXXX', message);
let slack = require('slack-micro');
slack.defaults = {
unfurl_links: true,
channel: 'C1QD223DS1',
token: 'xoxb-12345678900-ABCD1234567890'
};
let message = {
text: "I am a test message http://slack.com",
attachments: [{
text: "And here's an attachment!"
}]
};
// send message to any Slack endpoint
slack('chat.postMessage', message);
// event handler
slack.on('event name', [... 'event name',] callback);
// digester
slack('JSON string' or {message});
let slack = require('slack-micro');
slack.on('/test', message => {
// handle the "/test" slash commands
});
slack.on('slash_commands', message => {
// handle all slash commands
});
slack.on('googlebot', message => {
// handle the outgoing webhooks trigger word "googlebot"
});
slack.on('googlebot', '/test', 'slash_commands', message => {
// handle multiple events
});
// AWS Lambda handler
exports.handler = (event, context, callback) => {
slack(event.body); // parses the body
}
FAQs
A micro client to interact with Slack's Web API
The npm package slack-micro receives a total of 0 weekly downloads. As such, slack-micro popularity was classified as not popular.
We found that slack-micro 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
After Matplotlib rejected an AI-written PR, the agent fired back with a blog post, igniting debate over AI contributions and maintainer burden.

Security News
HashiCorp disclosed a high-severity RCE in next-mdx-remote affecting versions 4.3.0 to 5.x when compiling untrusted MDX on the server.

Security News
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.