Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

[Challenge] Rewrite ANDRU [trivial]

Name: Anonymous 2013-07-08 21:49

Help Mentifex solve the AI problem: rewrite ANDRU in your language of choice.

ANDRU is a chatbot, it should wait for the user to enter a string and reply with an English sentence. It doesn't need to make too much sense but should output grammatically valid sentences.

Your ANDRU should not need to be trained nor should he learn its vocabulary with user input (no Markov Chain).

You are allowed, on the other hand to scrape any data from Internet (website, forum, file, twitter, IRC ...). You may not use computer-generated data (don't pipe another chatbot).

Keep it short (10-20 LoC)

Bonus points for passing the Turing test with an average retard. Deadline: 24h.

Name: Anonymous 2013-07-10 7:40

>>23
I made a randum Andru that just take some reply from the first thread in /b/ and send that to the user. Then I realized that idiots on the imageboards can answer with an image and no text which made the JSON parsing fault. Also this ANDRU will only call you a niggerfaggot and say weird stuff.

Seeing that the thread was dead I just gave up.

(use http-client)
(use json)
(use html-parser)

(define (ANDRU)
    (begin
      (read)
      (print (html-strip (cdr (vector-ref (cadr (vector-ref (cadr (vector-ref (car (with-input-from-request "https://api.4chan.org/b/catalog.json" #f json-read)) 1)) 22)) 3))))
      (ANDRU)))

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List