Skip to content

wavy-cat/petpet-go

Repository files navigation

petpet-go

A web service for generating petpet GIFs (and APNG now) based on a Discord user's avatar.

Usage

GET /ds/{user_id}.gif

Path parameters

Name Type Description
{user_id} Snowflake The Discord user's ID

Query parameters

Name Default Type Description
delay 4 Unsigned Integer GIF speed. Bigger is slower
no-cache false Boolean Whether to disable caching (Cache-Control headers)

Formats

  • .gif
  • .apng

Getting started

  • Docker (Container Registry)
docker run ghcr.io/wavy-cat/petpet-go
  • Docker (Local)
docker build . -t ghcr.io/wavy-cat/petpet-go
docker run ghcr.io/wavy-cat/petpet-go
  • Go
go run github.com/wavy-cat/petpet-go/cmd/app

Configuration

Currently, config parameters can be specified either in the config.yml file or via environment variables.

Look at the sample config with comments (including environment variable names)

PetPet in other languages