kk
This commit is contained in:
		
							
								
								
									
										19
									
								
								config.js
									
									
									
									
									
								
							
							
						
						
									
										19
									
								
								config.js
									
									
									
									
									
								
							@@ -55,17 +55,20 @@ module.exports = function(rssi){
 | 
				
			|||||||
				});
 | 
									});
 | 
				
			||||||
			},
 | 
								},
 | 
				
			||||||
			action : (bot,event,message)=>{
 | 
								action : (bot,event,message)=>{
 | 
				
			||||||
				return Promise.all(this.rssi.map(entry=>
 | 
									return Promise.all(this.rssi.map(entry=>{
 | 
				
			||||||
					db.get_v(entry.chat).then(v=>
 | 
										console.log(entry);
 | 
				
			||||||
						get_rss(entry.url,v).then(articles=>
 | 
										return db.get_v(entry.chat).then(v=>{
 | 
				
			||||||
							articles.forEach(art=>
 | 
											console.log(v)
 | 
				
			||||||
								db.set_v(entry.url,parseInt(art.guid)).then(rr=>
 | 
											return get_rss(entry.url,v).then(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"})
 | 
												 		this.bot.telegram.sendMessage(entry.chat,article_to_mess(art),{"parse_mode":"Markdown"})
 | 
				
			||||||
								)
 | 
													)
 | 
				
			||||||
							)	
 | 
												})	
 | 
				
			||||||
						)
 | 
											)
 | 
				
			||||||
					)
 | 
										})
 | 
				
			||||||
				)).then(r=>event.reply("Refreshed all Feeds"));
 | 
									})).then(r=>event.reply("Refreshed all Feeds"));
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		],
 | 
							],
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user