Skip to content

Snazzah/botsgg-widget

Repository files navigation

bots.gg Widget

Deploy to Cloudflare Workers

Create a widget from a bot in bots.gg. Formerly from SnazzahAPI.

Usage

Simply use https://botsgg.snazzah.dev/widget/<client_id>/default.svg as an image URL and it will generate a nice widget.

Widget Types

Currently there are two widget types: default and banner as shown above. You can replace the end of the url with <type>.svg to change it.

Custom Width

You can change the width of the widget using w in a query string. (ex. ?w=500 for 500 pixels)

Badges

You can also use badges with https://botsgg.snazzah.dev/badge/<client_id>/servers. The available badge types are servers, library, and status. You can use the query parameters as listed in the Shields.io documentation except logo, url, cacheSeconds, and link.

Attribution

Made by Snazzah under the MIT license.

About

Cloudflare worker for bots.gg widgets.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  

Contributors 2

  •  
  •