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