2.0.3 • Published 10 years ago

instant-notification v2.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
10 years ago

Instant Notification

NOTE: this API is switched to use a HTTP based rather than TCP based protocol. Document to be updated soon.

instant-notification is a service that helps local applications to send channel-based notification. Currently it can send notification to Slack. In order to use this program, you need a Slack team, set up a bot, and obtain its access token.

To install:

npm install -g instant-notification

To run:

>> instant --slack-token=xxxx-xxxxxxxxxxxxxxxxxxx --port=10007
Server listening at {"address":"::","family":"IPv6","port":10007}

Then in any program, send a notification is simply connecting to this TCP endpoint and send messages in the form of:

<channel> <message>

channel must already exist on your Slack team. It cannot contain spaces. message can have any characters including spaces.

One easy way to test is by using netcat:

>> ncat localhost 10007
general Wake up!! Your service is crashing!!!!

And here's what you'll get on your phone:

Usage

instant [--debug] [--port=[10007]] [--slack-token=<token>]
[--username=<username>]
   If slack token is not specified, it must be present as the environment
   variable SLACK_TOKEN
2.0.3

10 years ago

2.0.2

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago