generated from nhcarrigan/template
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user