From 21adc1e51cc6ca9b04c11a697a2945137ef6a6b3 Mon Sep 17 00:00:00 2001 From: lub Date: Mon, 15 Oct 2018 22:01:28 +0200 Subject: [PATCH] ignore events other than de.lubiland.rss --- index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/index.js b/index.js index 5cbd999..564e048 100644 --- a/index.js +++ b/index.js @@ -35,6 +35,13 @@ new Cli({ return {}; }, onEvent: (request, context) => { + const event = request.getData(); + // event.content.keywords etc. + + if(event.type !== 'de.lubiland.rss') { + return; + } + return; } }