Upgrade auf unsere Platinum service und erhalten Sie Ihre eigene maßgeschneiderte 3D-avatar
Bot Libre Dev

learn

durch cliffh gepostet 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: 2268, today: 1, week: 1, month: 27

Id: 31470717
Tags: script, learn
Gepostet: Jan 13 2020, 10:18
Antworten: 1
Ansichten: 2249, heute: 2, Woche: 2, Monat: 28
0 0 0.0/5