A Mastodon bot to drip-toot a Piwigo gallery one image at a time.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
The Dod 7225d4b9a0 Link to the bot's Mastodon account 15時間前
.gitignore .gitignore `previous_id.txt` 4日前
README.md Link to the bot's Mastodon account 15時間前
bloomscroller.py Document config re toot and alt-text templates 4日前
config.py Add #photography hashtag 1日前
example.json Document config re toot and alt-text templates 4日前
install.sh More version gambling 1日前
register.py Add utility scripts, and document tnem at README 3日前
register.sh Add utility scripts, and document tnem at README 3日前
requirements.txt Initial commit 4日前
run.sh Add utility scripts, and document tnem at README 3日前

README.md

Bloomscroller is a Mastodon bot that is run as a cron job in order to drip-toot a Piwigo gallery one image at a time.

Specifically, it was written for the @bloomscrolling@tooot.im bot that publishes photos from a gallery of flowers that grow in our garden (hence the name).

At config.py there are TOOT_TEMPLATE and ALT_TEXT_TEMPLATE that can contain fields from an album image’s json info. In my specific test case I don’t use {title} and {comment}, but they’re there if they’re useful for you.

Installing

  • Run ./install.sh
  • Edit config.py to suit your needs
  • Run ./register.sh to register the bot with you mastodon server (make sure the instance’s policy allows you to run the bot).

Running

Run [/path/to/here]/run.sh. This can be done as a cron job.

      , .-.-,_,
      )`-.>'` (
     /     `\  |
     |       | |
      \     / /
      `=(\ /.=`
       `-;`.-' 
         `)|     ,
          ||  .-'|
        ,_||  \_,/
  ,      \|| .'
  |\|\  , ||/
 ,_\` |/| |Y_,
  '-.'-._\||/
     >_.-`Y|
     ` .-"||"-.
       \'----'/
        |:.  |
        |::. |
       /::::  \
     .:::'     '.
    /:::         \
   ;:::'          ;
   |:::           |
   |:::           |
   |:::           |
   ;:::           ;
   \:::.          /
jgs ':::..      .'
     `""-----""`

ASCII art by Joan G. Stark.