Skip to content

shayypy/daily-peanuts

Repository files navigation

daily-peanuts

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).

image

Environment

  • GOCOMICS_SLUG - the URL slug of the comic to check (the part after gocomics.com and before the date - like peanuts)
  • 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.org
    • MATRIX_ACCESS_TOKEN - your matrix account's access token, found in the account developer tools menu on Cinny
    • MATRIX_ROOM_ID - the room ID to send messages to

About

Checks for new comics every day and posts them to Discord

Topics

Resources

Stars

Watchers

Forks

Contributors