Duck Image Generator
This command generates random embedded duck pictures. Quack! 🦆🦆🦆
Trigger
Type: Command
Trigger: randduck
Usage
-randduck
- Generates a random embedded duck picture.
Code
{{/*
Generates random embedded duck pictures 🦆
See <https://yagpdb-cc.github.io/fun/duck> for more information.
Author: Satty9361 <https://github.com/Satty9361>
*/}}
{{ $link := "https://random-d.uk/api/" }}
{{ $c := randInt 10 }}
{{ if lt $c 7 }}
{{ $link = joinStr "" $link (toString (randInt 1 130) ) ".jpg" }}
{{ else }}
{{ $link = joinStr "" $link (toString (randInt 1 29)) ".gif" }}
{{ end }}
{{ sendMessage nil (cembed "image" (sdict "url" $link)) }}
Author
This custom command was written by @Satty9361.