slackin

by rauchg

rauchg / slackin

Public Slack organizations made easy

6.4K Stars 1.4K Forks Last release: Not found MIT License 330 Commits 40 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

Features

  • A landing page you can point users to fill in their emails and receive an invite (
    https://slack.yourdomain.com
    )
  • An
     badge to embed on any website that shows connected users in realtime with socket.io.
  • A SVG badge that works well from static mediums (like GitHub README pages)
  • Abuse prevention via Google reCAPTCHA

Usage

Badges

Realtime (demo)


SVG (demo)


API

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
.

Caught a Bug?

  1. Fork this repository to your own GitHub account and then clone it to your local device
  2. Uninstall slackin if it's already installed:
    npm uninstall -g slack
  3. Link it to the global module directory:
    npm link
  4. Transpile the source code and watch for changes:
    npm start

Yey! Now can use the

slack
command everywhere.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.