Public Slack organizations made easy
https://slack.yourdomain.com)
Loading
slackinwill return a
Functionthat creates a
HTTP.Serverinstance:
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.Serverhas an
appproperty that is the
expressapplication 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
slackcommand everywhere.