શું તમે જાણો છો બોટ કાવ્ય પણ પૂરી પાડે છે મફત હોસ્ટ લાઈવ ચેટ માટે તમારી પોતાની વેબસાઇટ અથવા મોબાઇલ એપ્લિકેશન?
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
જોવાઈ: 1736, આજે: 1, સપ્તાહ: 6, મહિને: 6
0 0 0.0/5