now-updater/config.js

33 lines
736 B
JavaScript
Raw Normal View History

2025-12-18 01:57:14 +00:00
import {
getJsonFeedItemContent,
getJsonFeedItemTitle,
2025-12-18 02:39:27 +00:00
getMalojaScrobble,
2025-12-18 01:57:14 +00:00
markdownLinkRegex,
} from "./utils.js";
export const items = [
{
id: "blog",
regex: markdownLinkRegex("melkat.blog"),
getLatest: async () =>
getJsonFeedItemTitle("https://melkat.blog/feed.json"),
},
{
id: "pics",
regex: markdownLinkRegex("melkat.pics"),
getLatest: async () =>
getJsonFeedItemTitle("https://melkat.pics/feed.json"),
},
{
id: "lol",
regex: markdownLinkRegex("melkat.lol"),
getLatest: async () =>
getJsonFeedItemContent("https://melkat.lol/feed.json"),
},
2025-12-18 02:39:27 +00:00
{
id: "maloja",
regex: markdownLinkRegex("scrobbles.melkat.dev"),
getLatest: async () => getMalojaScrobble("https://scrobbles.melkat.dev"),
},
2025-12-18 01:57:14 +00:00
];