الانضمام إلى بوت الحرة مفتوحة المصدر المشروع في BotLibre.org
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: 2064, today: 2, week: 7, month: 11

معرف: 31470717
Tags: script, learn
نشر: Jan 13 2020, 10:18
الردود: 1
الآراء: 2033, اليوم: 1, الأسبوع: 8, الشهر: 15
0 0 0.0/5