DOC 2.2.6
Bot

Bot.

bot showbot createbot removebot existbot aiml setbot executebot aiml remove

bot show

Description

    To show all bots.

admin
bot show
mentdb
["lisa"]

bot create <botName> <is_male> <lang>

Description

    To create a new bot.

Parameters

    botName:   The bot name - string - required
    is_male:   Is male - string - required
    lang:   The language (fr|en) - string - required
admin
bot create "bob" 1 "fr"
mentdb
1

bot remove <botName>

Description

    To remove a bot.

Parameters

    botName:   The bot name - string - required
admin
bot remove "bob"
mentdb
1

bot exist <botName>

Description

    To check if a bot already exist.

Parameters

    botName:   The bot name - string - required
admin
bot exist "bob"
mentdb
1

bot aiml set <botName> <filename> <xml>

Description

    To set (overwrite) a new AIML file.

Parameters

    botName:   The bot name - string - required
    filename:   The AIML filename - string - required
    xml:   The XML file in AIML format - string - required
admin
bot aiml set "bob" "hello.aiml" "<?xml version=\"1.0\" encoding=\"UTF-8\"?> <aiml> <!-- --> <category><pattern>BONJOUR</pattern> <template>Salut.</template> </category> <category><pattern>BONJOUR JE SUIS *</pattern> <template>Salut <star index = \"1\"/>.</template> </category> <category><pattern>* EST UN DEVELOPPEUR</pattern> <template>Oui <star index = \"1\"/> est un développeur.</template> </category> <category> <pattern>TU CONNAIS *</pattern> <template> <srai><star/> EST UN DEVELOPPEUR</srai> </template> </category> <category><pattern>QUI ES TU</pattern> <template>concat \"Je suis '\" (name) \"'.\"|</template> </category> <category><pattern>MERCI</pattern> <template>De rien.</template> </category> <category><pattern>COMMENT SA VAS</pattern> <template>Bien.</template> </category> </aiml> "
mentdb
Loaded after 6 categories in 0.011 sec

bot execute <botName> <user> <sentence>

Description

    To execute a string.

Parameters

    botName:   The bot name - string - required
    user:   The current user - string - required
    sentence:   The sentence - string - required
admin
bot execute "bob" "admin" "how are you ?"
mentdb
I'm fine.

bot aiml remove <botName> <filename>

Description

    To set (overwrite) a new AIML file.

Parameters

    botName:   The bot name - string - required
    filename:   The AIML filename - string - required
admin
bot aiml remove "bob" "hello.aiml"
mentdb
1


MentDB © 2012 - 2020 - Legal Notice