A Mastodon bot to drip-toot a Piwigo gallery one image at a time.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
The Dod 27c1cf4906 Python3 regardless of server's default 1周前
.gitignore .gitignore `previous_id.txt` 1周前
README.md Add utility scripts, and document tnem at README 1周前
bloomscroller.py Document config re toot and alt-text templates 1周前
config.py Opalstack specific config file 1周前
example.json Document config re toot and alt-text templates 1周前
install.sh Python3 regardless of server's default 1周前
register.py Add utility scripts, and document tnem at README 1周前
register.sh Add utility scripts, and document tnem at README 1周前
requirements.txt Initial commit 1周前
run.sh Add utility scripts, and document tnem at README 1周前

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, I wrote it in order to publish 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.