Upgrade
Sign In : Sign Up : Blog : Search: Language : Help :
Upgrade to our Diamond service and we will build you your own app for Android or iOS
Bot Libre Forum : Automating your Facebook presence using a Facebook bot

RE: Automating your Facebook presence using a Facebook bot

by marcosnunes posted Mar 1, 8:14

// Returns WordPress posts as a plain text.
state TeachEnglish {
  pattern "^ [verbo pronome pronomes] (to) *" template Teaching();

  function Teaching() {
    var text = Http.requestJSON("https://teacherbot.000webhostapp.com/wp-json/wp/v2/pages?slug=" + Http.encode(star[1]));
    var result = new Object();
    text.text = result;
    result = stringify(json[0].content.rendered);
    result = text.replace("<p>", "");
    result = text.replace("<\/p>", "");
    result = text.replace("\n", "");
    result = text.trim();
   
   
    if (result == null) {
        return "Você quer pesquisar sobre isso na internet?";
   
       
    }
   
  
    return result;
  }
}


Id: 15627005
Posted: Mar 1, 8:14
Replies: 0
Views: 304, today: 3, week: 3, month: 12
I'm sure
Flag graphic as offensive, or in violation of site rules