From 521e7d037cd165bbeda5a53d2004bb3269bd7fd7 Mon Sep 17 00:00:00 2001 From: Cedric Hoelzl Date: Thu, 2 Jul 2020 20:52:41 +0200 Subject: [PATCH] kk --- config.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config.js b/config.js index 321a3e1..7133f45 100644 --- a/config.js +++ b/config.js @@ -59,14 +59,15 @@ module.exports = function(rssi){ console.log(entry); return db.get_v(entry.chat).then(v=>{ console.log(v) - return get_rss(entry.url,v).then(articles=> + return get_rss(entry.url,v).then(articles=>{ + console.log(articles) articles.forEach(art=>{ console.log(art.title) return db.set_v(entry.url,parseInt(art.guid)).then(rr=> this.bot.telegram.sendMessage(entry.chat,article_to_mess(art),{"parse_mode":"Markdown"}) ) }) - ) + }) }) })).then(r=>event.reply("Refreshed all Feeds")); }