def add_feed(params, channel_mentions): ''' Add feed to be check for updates, which will be posted to specificed channel Params: feed - Website that will be parsed for updates channel - Discord channel where updates will be posted ''' feed = params[0] channel = channel_mentions[0] global feeds feed = Feed(feed, channel) feeds.append(feed) return Message_Successful_Add_Feed
def getFeed(feedname): global processPool print(('getting ' + feedname)) item_node = processor.getXMLItems(feedname) #save the title and link of each print(feedname) if feedname in AllFeeds.feedList: print('not new feeds') else: AllFeeds.feedList[feedname] = Feed(feedname) for item in item_node: print('add processing task') processPool.add_task(processFeed, item, feedname)