Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 1.09 KB

README.md

File metadata and controls

18 lines (11 loc) · 1.09 KB

SUCHO Memebot

Post a Memes

Posts a random meme from the SUCHO Meme Wall to Mastodon every 2 hours.

@sucho_memes@mastodon.online

How it works

  • The memebot script fetches the SUCHO Meme Wall RSS feed and selects a meme at random from those that haven't yet been posted.
  • The bot uses the Mastodon REST API to post the media file and then to post a new status.
  • If ths post is successful, posted.log is updated with the ID of the posted meme, as well as the posted time and the post URI.
  • A GitHub Actions workflow is scheduled to run every two hours. The workflow executes the memebot script and commits the updated posted.log back to the repo.