Skip to content

wavy-cat/petpet-go

Repository files navigation

petpet-go

GitHub go.mod Go version GitHub License GitHub repo size

A web service for generating petpet GIFs 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)

Getting started

  • Using Docker:

    docker run ghcr.io/wavy-cat/petpet-go

  • Using binaries:

    Download the latest release and run it.

  • Compiling (you need Go compiler):

    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

About

Petpet GIF generator, written in Go

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •