Always start with an Update:
$ sudo apt-get updateCreate folder for project:
$ mkdir production| Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
| ActivityTweet | |
| generic_activity_highlights | |
| generic_activity_momentsbreaking | |
| RankedOrganicTweet | |
| suggest_activity | |
| suggest_activity_feed | |
| suggest_activity_highlights | |
| suggest_activity_tweet |
| var request = require ("request"); | |
| var urlWebHook = "https://hooks.slack.com/services/abcdef"; //the URL you get on your "incoming web hooks" page. | |
| function sendToSlack (s, theUsername, theIconUrl, theIconEmoji, theChannel) { | |
| var payload = { | |
| text: s | |
| }; | |
| if (theUsername !== undefined) { | |
| payload.username = theUsername; |
This gist assumes: