diff --git a/widgets/twitch-drops/README.md b/widgets/twitch-drops/README.md new file mode 100644 index 00000000..fe60bdde --- /dev/null +++ b/widgets/twitch-drops/README.md @@ -0,0 +1,45 @@ +# Twitch Drops + +Show active Twitch Drops campaigns with game art and end dates. + + + +```yaml +- type: custom-api + title: Twitch Drops + cache: 6h + url: https://twitch-drops-api.sunkwi.com/drops + headers: + Accept: application/json + User-Agent: Mozilla/5.0 + template: | + {{ if eq (len (.JSON.Array "")) 0 }} +
No active Twitch drops found.
+ {{ else }} +Ends {{ slice (.String "endAt") 0 10 }}
+