Collects reports of #weeknotes and collates them into a blog post
Not a complete set of instructions, needs fleshing out more...
bundle install
Then there are three main operations:
bundle exec ruby find_toots.rb
to find relevant posts on Mastodon and ask for consent if neededbundle exec ruby check_consent_requests.rb
to check for responses to consent requestsThose two should be run regularly to gather the data needed by the third script:
bundle exec ruby generate_weeknotes.rb NAME-OF-CONFIG-FILE.yaml
which is run once-a-week to create the weeknotes post.
We run the code under Docker
when deployed.
Gemfile.lock
file: docker run --rm -v "$PWD":/usr/src/app -w /usr/src/app ruby:3.1 bundle install
docker build -t weeknotes .
/var/local/media_root
/var/local/workfiles
weeknotes-config.yaml
. This should live in the folder used to contain the work files (docker expects to find it at /var/local/workfiles/weeknotes-config.yaml
)docker run [add volume arguments] weeknotes [operation]