Upgrade
Sign In : Sign Up : Blog : Search: Language : Help :
Host your own bot platform with the Bot Libre Corporate Bot Platform
Bot Libre Forum : Automating your Facebook presence using a Facebook bot

RE: Automating your Facebook presence using a Facebook bot

by marcosnunes posted Feb 28, 9:01

I need to parse a wp json rest api text plain for to be showed in facebook messenger withougth html tag <p>.

 

// Returns WordPress posts.
state TeachEnglish {

pattern "^ [verbo pronome pronomes] (to) *" answer Teaching();

function Teaching() {

var text = Http.requestJSON("https://teacherbot.000webhostapp.com/wp-json/wp/v2/pages?slug=" + Http.encode(star[1]);); return JSON.stringify(json[0].content.rendered); } }


}

}

 

e.g. Pattern "verbo to be"

How do I that?


Id: 15617873
Posted: Feb 28, 9:01
Replies: 0
Views: 393, today: 2, week: 2, month: 15
I'm sure
Flag graphic as offensive, or in violation of site rules