GitHub Readme.md
https://slack.yourdomain.com
)<iframe>
badge to embed on any website that shows connected users in realtime with socket.io.<script async defer src="https://slack.yourdomain.com/slackin.js"></script>
<!-- append "?large" to the URL for the large version -->
<img src="https://slack.yourdomain.com/badge.svg">
Loading slackin
will return a Function
that creates a HTTP.Server
instance:
const slackin = require('slackin')
slackin.default({
token: 'yourtoken', // required
interval: 1000,
org: 'your-slack-subdomain', // required
path: '/some/path/you/host/slackin/under/', // defaults to '/'
channels: 'channel,channel,...', // for single channel mode
silent: false // suppresses warnings
}).listen(3000)
This will show response times from Slack and how many online users you have on the console. The returned http.Server
has an app
property that is the express
application that you can define or override routes on.
All the metadata for your organization can be fetched via a JSON HTTP request to /data
.
npm uninstall -g slack
npm link
npm start
Yey! Now can use the slack
command everywhere.