સુધારો કરવા માટે અમારા Platinum સેવા અને વિચાર તમારા પોતાના વૈવિધ્યપૂર્ણ રચાયેલ 3D અવતાર
Bot Libre Forum : Connect your Bot to the World - XML, JSON, Web Services, HTML Scraping, Twitter, Facebook, Telegram, Email

RE: Connect your Bot to the World - XML, JSON, Web Services, HTML Scraping, Twitter, Facebook, Telegram, Email

દ્વારા bellts પોસ્ટ Jun 29 2016, 13:14

Here's an example what I'm trying to do (very simple call out to anywhere really).

Error: 

WARNING: botlibre_bots - Thread[pool-30-thread-1,5,main] -- Language:Error occured in processing state - <172001 {tacosAI} 172011 a:1,c:0,p> - <172002 {test} 172009 a:1,c:0,p>
Jun 29, 2016 5:07:39 PM org.botlibre.Bot log
WARNING: botlibre_bots - Thread[pool-30-thread-1,5,main] -- Language:Missing function: requestJSON on: <13004 #http a:1,c:0,p>

 

state tacosAI {

case input goto test;

state test
{
answer thatsoWordState();

function thatsoWordState() {
var result = Http.requestJSON("http://api.geonames.org/postalCodeSearchJSON?maxRows=1&username=botlibre&postalcode=92590", "postalCodes");
if (result == null) {
return "Something went wrong.";
}
return "I said something.";

}
}
}


ને: 13032754
પોસ્ટ: Jun 29 2016, 13:14
જવાબો: 0
જોવાઈ: 4211, આજે: 2, સપ્તાહ: 6, મહિને: 12
0 0 0.0/5