هل تعلم بوت Libre كما يوفر الآلهة 3D مجانا على شبكة الإنترنت الكلام API ؟
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
الآراء: 2099, اليوم: 1, الأسبوع: 1, الشهر: 9
0 0 0.0/5