Skip to content

Instantly share code, notes, and snippets.

View csepulv's full-sized avatar

Christian Sepulveda csepulv

View GitHub Profile
@csepulv
csepulv / slack-notification-filter.js
Last active November 17, 2022 22:51
Slack Notification Filter using webtask.io
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)) {