Skip to content

TheWorldTable/node-slack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-slack

##Usage

    var slack = require('node-slack');

    slack.setup({
    	url: '*Your Webhook URL*',
    	channel: '#foo', // Optional
    	user: 'bar', // Optional
    	icon_url: 'http://foo.com/bar.jpg', // Optional
    	icon_emoji: ':bowtie:' // Optional
    });

	slack.postToSlack("Hello Slack!");
	
	slack.postToSlack([{
    	'fallback': 'Hello Slack!',
    	'pretext': 'Hello Slack!',
    	'color': '#daa520',
    	'fields': [{
        	'title': 'Notes',
        	'value': 'Node is awesome!'
    	}]
	}]);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published