it's a mastodon bot that posts the most recent image from NASA's Astronomy Picture of the Day
it uses ananas
this is only tested on python 3.10
you should run this from a virtual environemnt or risk suffering terrible dependency mismatches sometime in the future
install the package and its dependencies
$ pip install .
fill in config file
$ cp config/ananas.cfg.example config/ananas.cfg $ $EDITOR config/ananas.cfg
run
$ ananas config/ananas.cfg
enjoy
fill in config file
$ cp config/ananas.cfg.example config/ananas.cfg $ $EDITOR config/ananas.cfg
build
$ docker buildx build -t mastodon-apod . $ # or, shortened: $ make docker
stop and remove potential existing container
$ docker rm -f mastodon-apod $ # or, shortened: $ make docker-rm
and run
$ docker run -n mastodon-apod -d --restart unless-stopped -v $(pwd)/config:/app/config --user $(id -u) mastodon-apod $ # or, shortened: $ make docker-run
these last three steps can be run at once with
$ make up