Aktualizacja w naszej komercyjnej usługi Bot Libre for Business dla tylko $4.99 miesięcznie
Self, AIML, and scripting : Making my bot search duckduckgo

RE: Making my bot search duckduckgo

w admin wysłany Feb 25 2017, 7:13

To search duckduckgo you will want to create a Self script in your bot to access the duckduckgo web API.

See,
https://www.botlibre.com/forum-post?id=13020078

Using a published web API is recommended, if the website does not provide a web API it is also possible to use HTML scraping.

If you want the bot to perform this function when it does not know a good response, you can add a srai or redirect() command to your bot's default response.

To do this set your bot's default response to this template,

Template("{redirect ("search duckduckgo " + sentence)}")

Then in your script you have...

pattern "search duckduckgo *" answer searchDuckduckgo();

function searchDuckduckgo() {...}


Identyfikator: 15590617
Wysłany: Feb 25 2017, 7:13
Odpowiedzi: 0
Widok: 1927, dziś: 3, tydzień: 5, miesiąc: 23
0 0 0.0/5