13 lines
432 B
JavaScript
13 lines
432 B
JavaScript
const RSS = require("rss")
|
|
|
|
function makeRss(items, feed_link, name, description, link){
|
|
return new RSS({
|
|
title: `Lyrical Tokarev${name ? ` ~ ${name}` : ""}`,
|
|
site_url: link ? link : "https://lyricaltokarev.com/home",
|
|
feed_url: feed_link,
|
|
description: description ? description : "Anime site.",
|
|
managingEditor: "gor@lyricaltokarev.com (Gor Down)"
|
|
}, items)
|
|
}
|
|
|
|
module.exports = makeRss |