This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
asdaa's profile picture

How to use AI Chatbox from Peripherals++?

Started by asdaa, 01 September 2016 - 02:08 PM
asdaa #1
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?
TheRockettek #2
Posted 01 September 2016 - 11:21 PM
1) Wont be useful for normal chqt, it is wierd.
2) I dont even know xD
2) The official wiki doesnt say anything about it
4) peripheral.getMethods()
valithor #3
Posted 02 September 2016 - 04:59 AM
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
CCJJSax #4
Posted 02 September 2016 - 07:52 AM
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


That prints 1 2 3
v is more useful that prints
newSession
getSession
getAllSessions
Edited on 02 September 2016 - 05:53 AM
asdaa #5
Posted 02 September 2016 - 02:31 PM
I seem to have figured out how it supposed to work but there is something wrong with the cleverbot.

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.
CCJJSax #6
Posted 02 September 2016 - 07:50 PM
I seem to have figured out how it supposed to work but there is something wrong with the cleverbot.

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.
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
I think that is why it's returning that.