|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
(in-package #:lolicore)
|
|
|
|
|
|
|
|
|
|
(defun loli-link (rating )
|
|
|
|
|
(defun loli-link (rating)
|
|
|
|
|
"Generate a valid link to a loli image from a random booru"
|
|
|
|
|
(let ((booru (cl-rng:within *boorus*)))
|
|
|
|
|
(format nil (url booru)
|
|
|
|
@ -9,7 +9,7 @@
|
|
|
|
|
|
|
|
|
|
(defun loli-json (rating)
|
|
|
|
|
"Get a link using `loli-link', download it and return parsed JSON"
|
|
|
|
|
(car (jsown:parse (dex:get (loli-link rating)))))
|
|
|
|
|
(car (jsown:parse (dex:get (loli-link rating)))))
|
|
|
|
|
|
|
|
|
|
(defun loli-data (json &key tags file-url
|
|
|
|
|
&aux (lst '()))
|
|
|
|
|