Скачать открытый исходный код бота Либре общий выпуск и установите бот Libre на свой собственный сервер
Bot Libre Forum : answer to this

RE: answer to this

по admin опубликовано 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}.")


Идентификатор: 16829803
Опубликовано: Apr 26 2017, 17:28
Ответы: 0
Вид: 1215, сегодня: 2, неделю: 4, месяц: 7
0 0 0.0/5