Welcome to the CHICKEN Scheme pasting service

vandusen's brain added by mario-goulart on Mon Oct 5 20:32:38 2026

(define (random-t-rex-quote #!optional (retries 1))
  (let ((result ((sxpath '(// (div (@ (equal? (class "randomquote")))) a *text*))
                 (call-with-input-request "http://www.qwantz.com/index.php" #f html->sxml))))
    (if (pair? result)
        (car result)
        (and (> retries 0)
             (random-t-rex-quote (sub1 retries))))))


(command 'fall-through
         '(: (* any))
         (lambda (message)
           (reply-to message (random-t-rex-quote)))
         public: #t)

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
What's the procedure that returns the cdr of a car?