升级到我们的 Platinum 服务并让我们建立您的机器人给你
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: 2495, today: 10, week: 14, month: 26

Id: 31470717
标签: script, learn
发布: Jan 13 2020, 10:18
答复: 1
的风景: 2483, 今天: 11, 周: 17, 一个月: 28
0 0 0.0/5