feat: syndicate freeCodeCamp news posts

This commit is contained in:
2025-08-20 12:23:53 -07:00
parent 344548c5d2
commit b5c19abb52
7 changed files with 199 additions and 2 deletions
+4 -1
View File
@@ -7,5 +7,8 @@
import type { Client } from "discord.js";
export interface Amari {
discord: Client;
discord: Client;
lastRssItems: {
freeCodeCamp: string | null;
};
}
+40
View File
@@ -0,0 +1,40 @@
/**
* @copyright NHCarrigan
* @license Naomi's Public License
* @author Naomi Carrigan
*/
/* eslint-disable @typescript-eslint/naming-convention -- Gonna have weird properties in this file. */
interface FreeCodeCampRSS {
items: Array<{
"creator": string;
"title": string;
"link": string;
"pubDate": string;
"content:encoded": string;
"dc:creator": string;
"content": string;
"contentSnippet": string;
"guid": string;
"categories": Array<string>;
"isoDate": Date;
}>;
feedUrl: string;
image: {
link: string;
url: string;
title: string;
};
paginationLinks: {
self: string;
};
title: string;
description: string;
generator: string;
link: string;
lastBuildDate: string;
ttl: string;
}
export type { FreeCodeCampRSS };