Skip to content
This repository was archived by the owner on Jun 14, 2025. It is now read-only.

Commit 2d460d2

Browse files
committed
Enhance image processing: update random APOD posting schedule, add sharp for image resizing, and improve logging
1 parent c7e48d3 commit 2d460d2

File tree

5 files changed

+536
-7
lines changed

5 files changed

+536
-7
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const cron = require("node-cron")
44
const { postRandomApod } = require("./utils/postRandomApod")
55

66
// Cron job to post a random APOD every hour - 0 * * * *
7-
cron.schedule("0 * * * *", async () => {
7+
cron.schedule("20 * * * *", async () => {
88
console.log("Posting random APOD...")
99
await postRandomApod()
1010
})
@@ -15,4 +15,5 @@ cron.schedule("0 11 * * *", async () => {
1515
await postLatestApod()
1616
})
1717

18+
// postRandomApod()
1819
console.log("Bot started.")

0 commit comments

Comments
 (0)