feature/jokes-memes #1

Merged
patillacode merged 5 commits from feature/jokes-memes into main 2026-03-19 21:55:36 +01:00
Owner
No description provided.
Fetches from JokeAPI v2 (JOKES_SOURCE=internet, default) or picks
randomly from a local markdown file (JOKES_SOURCE=personal, JOKES_FILE).
Supports both single and two-part joke formats. Sends to ntfy topic
overridable via NTFY_TOPIC_JOKES.
Fetches hot image posts from configurable subreddits (MEMES_SOURCES,
format: sub|count,sub2|count2). Filters NSFW posts by default. Sends
one ntfy notification per image with inline attach and click-through
permalink. Topic overridable via NTFY_TOPIC_MEMES.
- just/scripts.just: add jokes and memes recipes; add both to run-all
- docs/cron.md: jokes at 7am, memes at 12pm
- README.md: add scripts table rows, config sections for JOKES_* and
  MEMES_*, and updated cron block
- bin/bananify: add jokes and memes to usage string
- jokes.py: fix '---' delimiter to match standalone lines only, avoiding
  YAML front matter false positives; add explicit guard for unknown
  JOKES_SOURCE values with a warning instead of silent internet fallback
- memes.py: replace substring host check in is_image_url with urlparse
  netloc comparison to avoid false matches in query params/paths
- just/scripts.just: move memes to end of run-all to reflect its 12pm
  schedule separate from the 7am/8am block
- docs/cron.md: add just jokes/memes shortcuts to Running manually section
All scripts are now invoked the same way (just run <name>). The dedicated
jokes and memes shortcuts were the only named recipes and caused an
asymmetric interface. Updated justfile help text, README, and docs/cron.md
to reflect the consistent pattern.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
patillacode/bananify!1
No description provided.