~sara/openverse-slack-reaction

Use Openverse to pick reaction images based on a short query.
229f7e68 — sarayourfriend 7 months ago
Actually fix build (for real)
300a960e — sarayourfriend 7 months ago
Add image label
9f21257e — sarayourfriend 7 months ago
Fix build and bump version

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~sara/openverse-slack-reaction
read/write
git@git.sr.ht:~sara/openverse-slack-reaction

You can also use your local clone with git send-email.

#Openverse Slack Reaction Bot

🛗: Like Giphy but for openly licensed images indexed in the Openverse (with attributions).

#Installation

Visit https://openverse-slack.sarayourfriend.pictures/slack/install and click the "Add to Slack" button.

#Development

To set up local environment install pdm and run:

pdm install

Then, copy the .env.template file to .env and fill in variables. Run the app using:

docker compose up -d

By default the bot will be accessible on port 54823. Set PORT in .env to change the port.

#Deployment

You can deploy this using the docker image hosted on GitHub container registry, either directly:

docker run --env-file=.env -p 54823:54823 --mount 'type=volume,source=openverseslack,dst=/home/appuser/app/data' ghcr.io/sarayourfriend/openverse-slack-reaction:latest

Or using the compose.prod.yml with docker compose:

docker compose -f compose.prod.yml up -d

#Roadmap

#v0.0.1 (MVP)

  • /openverse <query> Picks a random image from the top 10 results for the query.

#v0.0.2

  • /openverse <query> \<caption\> Picks a random image from the top 10 images that allow derivitives and overlays caption similar to meme text