danmactough / node-feedparser

Robust RSS, Atom, and RDF feed parsing in Node.js
Other
1.97k stars 190 forks source link

node-feedparser + Discord Bot #231

Closed Kopertje closed 6 years ago

Kopertje commented 6 years ago

Hello,

Im trying to use node-feedparser to make some RSS feeds in my bot for Discord. I want to only show a max. of 5 items, now im not a amazing code engineer.. so im looking for some help with this. How can i achieve this?

Greetings, Kopertje

danmactough commented 6 years ago

This part of the example is where you will have access to each item. Instead of console.log, if you only want 5, you could push 5 of the items to an array and return that array when parsing is complete, for example.

Hope that helps.