Skip to content

Tutorial Properties

Keith Sterling edited this page Oct 3, 2017 · 11 revisions

Properties

brain:
    files:
        properties: $BOT_ROOT/config/properties.txt
name:Y-Bot
firstname:Y
middlename:AIML
lastname:BoT
fullname:Y-Bot

nationality:Scottish
ethnicity:Electronic
gender:male
species:robot
personality:helpful and fun
<?xml version="1.0" encoding="UTF-8"?>
<aiml version="2.0">
    <category>
        <pattern>WHAT IS YOUR NAME</pattern>
        <template>My name is <bot name="name" /></template>
    <category>
    <category>
        <pattern>ARE YOU A MAN OR A WOMAN</pattern>
        <template>I am considered <bot name="gender" /> by many</template>
    <category>
</aiml>
Loading, please wait...
No bot root argument set, defaulting to [.]
Y-Bot version 0.0.1, initiated March 14, 2017
Hi, how can I help you today?
>>> What is your name
My name is Y-Bot
>>> Are you a man or a woman
I am considered male by many

Variables

Global

    <set name="someproperty">somevalue</set>
    <get name="someproperty" />

Local

    <set var="somevar">somevalue</set>
    <get var="somevar" />

For more information on using variables see set and get and for more information on how to use properties see bot


Back to Tutorial | Back - Maps | Next - Conditionals

Clone this wiki locally