0.0.2 • Published 8 years ago

simple-slack-notification v0.0.2

Weekly downloads
9
License
-
Repository
github
Last release
8 years ago

A lightweight wrapper for Slack Notification

Required:
  • Set up value for SLACK_TOKEN environment variable
$ vim ~/.bash_profile
  • Then, add the following line
export SLACK_TOKEN="<your slack token>"

Restart your terminal.

Usage:
var notification1 = mSlack
					.getSlackEnvelop()
					.setTitle("My First Notification Title")
					.setDescription("This is just the description that stands under the title")
					.setAttributes({
						Nome:  "Vinicius Lima",
						idade: 28
					})
					.exec();