Skip to content

Instantly share code, notes, and snippets.

Avatar

Christian Sepulveda csepulv

View GitHub Profile
@csepulv
csepulv / slack-notification-filter.js
Last active Apr 22, 2019
Slack Notification Filter using webtask.io
View slack-notification-filter.js
var request = require('request');
function shouldNotify(data) {
//replace this with the appropriate check/filter for you
return data.text.includes("should notify");
}
module.exports = function (context, done) {
if (context.data.token == context.data.EXPECTED_TOKEN) {
if (shouldNotify(context.data)) {
You can’t perform that action at this time.