Simple cron worker that checks a gocomics.com page once daily at 2 PM UTC (6 AM PST, 9 AM EST) for a new comic, then sends the comic image (if any) to a Discord webhook. I made this for Peanuts, hence the name, but you can substitute any valid comic from GoComics (e.g. garfield
, peanuts-begins
).
GOCOMICS_SLUG
- the URL slug of the comic to check (the part aftergocomics.com
and before the date - likepeanuts
)WEBHOOK_ID
- discord webhook ID (the long number in the webhook URL)WEBHOOK_TOKEN
- discord webhook token (the last long string in the webhook URL)