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 or Matrix room. 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.comand before the date - likepeanuts)- Discord:
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)
- Matrix:
MATRIX_BASE_URL- base URL of the homeserver you want to use, e.g.https://matrix.orgMATRIX_ACCESS_TOKEN- your matrix account's access token, found in the account developer tools menu on CinnyMATRIX_ROOM_ID- the room ID to send messages to
