સુધારો કરવા માટે અમારા વ્યાપારી સેવા Bot Libre for Business માટે માત્ર $4.99 દર મહિને
Bot Libre Dev

learn

દ્વારા cliffh પોસ્ટ Jan 13 2020, 10:18

in self what is the syntax for the "learn" operator please? 


by admin posted Jan 14 2020, 8:26

In Self the learn() function takes a response category object that has a pattern and template.

For example:
learn( { pattern : "hello", template : "How are you today?" } );
or,
var response = new Object();
response.pattern = "hi";
response.template = "bye";
learn( response );

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 2071, today: 1, week: 1, month: 18

ને: 31470717
ટૅગ્સ: script, learn
પોસ્ટ: Jan 13 2020, 10:18
જવાબો: 1
જોવાઈ: 2037, આજે: 1, સપ્તાહ: 1, મહિને: 19
0 0 0.0/5