feat: pull from hackernews
Node.js CI / Lint and Test (push) Successful in 40s

This commit is contained in:
2025-08-20 13:58:03 -07:00
parent 19ae5eded8
commit 186414e96a
4 changed files with 77 additions and 3 deletions
+1
View File
@@ -10,5 +10,6 @@ export interface Amari {
discord: Client;
lastRssItems: {
freeCodeCamp: string | null;
hackerNews: string | null;
};
}
+26 -1
View File
@@ -37,4 +37,29 @@ interface FreeCodeCampRSS {
ttl: string;
}
export type { FreeCodeCampRSS };
interface HackerNewsRSS {
items: Array<{
"creator": string;
"title": string;
"link": string;
"pubDate": string;
"dc:creator": string;
"comments": string;
"content": string;
"contentSnippet": string;
"guid": string;
"isoDate": string;
}>;
feedUrl: string;
paginationLinks: {
self: string;
};
title: string;
description: string;
generator: string;
link: string;
lastBuildDate: string;
docs: string;
}
export type { FreeCodeCampRSS, HackerNewsRSS };