Posted 01 September 2016 - 04:08 PM
I haven't found any documentation about the ai chatbox so far. Does anyone have an example on how to use it?
side = --# whichever side the peripheral is on
for k,v in pairs(peripheral.getMethods(side)) do
print(k)
end
To expand slightly… The ai chatbox interfaces directly with cleverbot.com. It is interesting to play around with, but due to the spam to cleverbot, cleverbot will eventually temporarily block any requests from the ip making the chatbox not work.
If you still want to play around with it, run this code and tell us what it prints:side = --# whichever side the peripheral is on for k,v in pairs(peripheral.getMethods(side)) do print(k) end
ai = peripheral.wrap("side")
ses = ai.newSession()
ses.think("Hello")
This is supposed to return with a response but it actually gives a
java.io.fileNotFoundException: http://www.cleverbot.com/webservicemin
error.I seem to have figured out how it supposed to work but there is something wrong with the cleverbot.This is supposed to return with a response but it actually gives aai = peripheral.wrap("side") ses = ai.newSession() ses.think("Hello")
error.java.io.fileNotFoundException: http://www.cleverbot.com/webservicemin
I think that is why it's returning that.To expand slightly… The ai chatbox interfaces directly with cleverbot.com. It is interesting to play around with, but due to the spam to cleverbot, cleverbot will eventually temporarily block any requests from the ip making the chatbox not work