@name FailCake OnlineBot Talking
@inputs EGP:wirelink
@outputs Website:string Bot:array [Boty ID]:string
@persist 
@trigger all

runOnHTTP(1)
runOnChat(1)

if(first()){
Website = "http://www.pandorabots.com/pandora/talk?botid=f5d922d97e345aa1&skin=custom_input"  
setName("FailCake OnlineBot Talking [A.L.I.C.E]") 
httpRequest(Website)
}


if(httpClk()){
    ID = "2"
    Bot = httpData():explode("size="+ toChar(34) + ID + toChar(34) + ">")
    Boty = Bot[2, string]
    Boty = Boty:explode("<em>")[1, string]
    Boty = Boty:trim() 
    print(Boty)
}
