Скачать открытый исходный код бота Либре общий выпуск и установите бот Libre на свой собственный сервер
Bot Libre Forum : identifying a chatbot as male and female.

RE: identifying a chatbot as male and female.

по admin опубликовано Apr 24 2017, 14:19

You can add attributes to a bot or a user it is chatting with using a Self script or Template.

The global symbol #self is the object in Self that represents the bot. The variable speaker represents the current user in the current conversation. Any attributes you set on these objects (or any object) are automatically persisted in Self.

#self.gender = #female;

speaker.gender = #male;

Template("Hello {if (speaker.gender == #male) { "boyfriend" } else { "girlfriend" }}")


Идентификатор: 16803477
Опубликовано: Apr 24 2017, 14:19
Ответы: 0
Вид: 1863, сегодня: 1, неделю: 4, месяц: 13
0 0 0.0/5