تحميل مفتوحة المصدر بوت ليبر الجماعة الطبعة وتثبيت بوت ليبر على الخادم الخاص بك
Bot Libre Forum

answer to this

قبل bobred نشر Apr 26 2017, 14:39

How would i put a answer to this?

Template("My favourite actress is {#self.actress}.")


by admin posted Apr 26 2017, 17:28
You would need to set the value of the variable on the global object.

You can do this a number of ways.

From your bot's Knowledge page in its Admin Console there is a Worksheet that lets you execute code.

#self.actress = "Haley Berry";

You could also import a JSON file that defines the data,

{ #data : #self, actress : "Haley Berry" }

Or you could make another response or a script that sets this, (example response list)

Pattern("Your favourite actress is *")
Template("Okay, my favourite actress is now {#self.actress = star; star}.")

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1502, today: 2, week: 5, month: 12

by bobred posted Apr 26 2017, 19:22

If this is the knowledge page in these pictures?I have no idea how to use it.


Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1610, today: 1, week: 5, month: 10

by bobred posted Apr 26 2017, 20:10

The self script has numbers in it i do not understand.


Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1615, today: 1, week: 3, month: 11

معرف: 16826942
نشر: Apr 26 2017, 14:39
الردود: 3
الآراء: 1554, اليوم: 3, الأسبوع: 10, الشهر: 18
0 0 0.0/5