Skip to content

vinirll/simple-slack-notification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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();

About

Easily send slack notifications.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published