hubot-thunderpush
A hubot script for thunderpush
Last updated 6 years ago by jrschumacher .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hubot-thunderpush 
SYNC missed versions from official npm registry.

hubot-thunderpush

A Hubot script to interact with a Thunderpush server as an API console.

Thunderpush is a Tornado and SockJS based push service. It provides a Beaconpush (beaconpush.com) inspired HTTP API and client. (https://github.com/thunderpush/thunderpush)

Installing

Add dependency to Hubot's package.json:

{
  ...
  "dependencies": {
    ...
    "hubot-thunderpush": "latest"
  }
}

Include package in Hubot's external-scripts.json:

["hubot-thunderpush"]

Configuration

HUBOT_THUNDERPUSH_URL     # Thunderpush API server URL
HUBOT_THUNDERPUSH_KEY     # Thunderpush API Key
HUBOT_THUNDERPUSH_SECRET  # Thunderpush API Secret Key

UNIX

To launch hubot locally with the correct environment variable value:

./scripts/console

To add the correct environment variable to an existing and working Heroku deployment, you'll issue something like:

heroku config:add HUBOT_THUNDERPUSH_URL=http://thunderpush.myhost.com
heroku config:add HUBOT_THUNDERPUSH_KEY=key
heroku config:add HUBOT_THUNDERPUSH_SECRET=secret

Commands

# Post message to a channel
hubot thunder send #<channel> <message>

# Post message to a user
hubot thunder send @<user> <message>

# Get all online users
hubot thunder get all users

# Get user online status
hubot thunder get @<user> [status]

# Get channel online users
hubot thunder get #<channel> users

# Get channel online users
hubot thunder disconnect @<user>

Links

GitHub: https://github.com/thunderpush/hubot-thunderpush

npmjs: https://npmjs.org/package/hubot-thunderpush

Thunderpush: https://github.com/thunderpush/thunderpush

Current Tags

  • 0.9.1                                ...           latest (6 years ago)

3 Versions

  • 0.9.1                                ...           6 years ago
  • 0.9.0                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (1)
Dev Dependencies (6)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |