هل تعلم بوت Libre كما يوفر مجانا استضافت المنتديات على موقع الويب الخاص بك أو الهاتف المحمول التطبيق ؟
Self, AIML, and scripting

scripting language for chatbots have lists in it like in python

قبل bobred نشر May 1 2017, 17:21

Does the scripting language for chatbots have lists in them like in python.Because i would like to put animals in a list.And if the string in the sentence is in the list.It would answer It is a animal.But if the string in the sentence is not in the list it would answer that is not a animal. 


by admin posted May 2 2017, 11:59
Self is a dialect of JavaScript, so supports most JavaScript syntax including arrays and objects.

See,
https://www.botlibre.com/manual-self.jsp

You can also use lists in a pattern from a response list or AIML.

Pattern("Is [a an] [cat dog horse] an animal?")
Yes, it is an animal.

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 2601, today: 0, week: 4, month: 15

معرف: 16890263
نشر: May 1 2017, 17:21
الردود: 1
الآراء: 2578, اليوم: 2, الأسبوع: 3, الشهر: 14
0 0 0.0/5