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
+3
View File
@@ -9,6 +9,7 @@ import { scheduleJob } from "node-schedule";
import { handleMessageCreate } from "./events/handleMessageCreate.js";
import {
postFreeCodeCampNews,
postHackerNews,
} from "./modules/postNews.js";
import { respondToDm } from "./modules/respondToDm.js";
import { instantiateServer } from "./server/serve.js";
@@ -26,6 +27,7 @@ const amari: Amari = {
partials: [ Partials.Channel ] }),
lastRssItems: {
freeCodeCamp: null,
hackerNews: null,
},
};
@@ -34,6 +36,7 @@ amari.discord.once(Events.ClientReady, () => {
`Authenticated to Discord as ${amari.discord.user?.username ?? "unknown"}`);
scheduleJob("post news", "0 * * * *", async() => {
await postFreeCodeCampNews(amari);
await postHackerNews(amari);
});
});