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