|
|
1 dag geleden | |
|---|---|---|
| .gitignore | 1 dag geleden | |
| README.md | 1 dag geleden | |
| bloomscroller.py | 1 dag geleden | |
| config.py | 1 dag geleden | |
| example.json | 1 dag geleden | |
| install.sh | 1 dag geleden | |
| register.py | 1 dag geleden | |
| register.sh | 1 dag geleden | |
| requirements.txt | 1 dag geleden | |
| run.sh | 1 dag geleden |
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.
./install.sh./register.sh to register the bot with you mastodon server (make sure the instance’s policy allows you to run the bot).Run [/path/to/here]/run.sh. This can be done as a cron job.
, .-.-,_,
)`-.>'` (
/ `\ |
| | |
\ / /
`=(\ /.=`
`-;`.-'
`)| ,
|| .-'|
,_|| \_,/
, \|| .'
|\|\ , ||/
,_\` |/| |Y_,
'-.'-._\||/
>_.-`Y|
` .-"||"-.
\'----'/
|:. |
|::. |
/:::: \
.:::' '.
/::: \
;:::' ;
|::: |
|::: |
|::: |
;::: ;
\:::. /
jgs ':::.. .'
`""-----""`
ASCII art by Joan G. Stark.