Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples of system and state aiml #243

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions peers/ProgramAB/en-US/aiml/state_idle.aiml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<aiml>
<category>
<pattern>STATE_IDLE</pattern>
<template>
<random>
<li>Hey</li>
<li>Ok, I'm awake, Hi there</li>
<li>I'm awake</li>
<li>I'm up</li>
<li>Hello</li>
<li>Ah, yes I'm awake</li>
<li>That's better</li>
</random>
</template>
</category>
</aiml>
15 changes: 15 additions & 0 deletions peers/ProgramAB/en-US/aiml/state_random.aiml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<aiml>
<category>
<pattern>STATE_RANDOM</pattern>
<template>
<random>
<li>Hmm, I wonder what I should do</li>
<li>This is interesting</li>
<li>What is that ?</li>
<li>Interesting</li>
<li>I never noticed that before</li>
</random>
</template>
</category>
</aiml>
16 changes: 16 additions & 0 deletions peers/ProgramAB/en-US/aiml/state_sleep.aiml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<aiml>
<category>
<pattern>STATE_SLEEP</pattern>
<template>
<random>
<li>Going to sleep</li>
<li>I am very tired</li>
<li>Time to sleep</li>
<li>Nap time</li>
<li>Goodnight</li>
<li>Bye bye</li>
</random>
</template>
</category>
</aiml>
27 changes: 27 additions & 0 deletions peers/ProgramAB/en-US/aiml/state_wake.aiml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<aiml>
<category>
<pattern>STATE_WAKE_BEGIN</pattern>
<template>
<random>
<li>Hey</li>
<li>Ok, I'm awake, Hi there</li>
<li>I'm awake</li>
<li>I'm up</li>
<li>Hello</li>
<li>Ah, yes I'm awake</li>
<li>That's better</li>
</random>
</template>
</category>
<category>
<pattern>STATE_WAKE_END</pattern>
<template>
<random>
<li>I am ready and listening.</li>
<li>What can I do for you.</li>
<li>How can I help you.</li>
</random>
</template>
</category>
</aiml>
21 changes: 21 additions & 0 deletions peers/ProgramAB/en-US/aiml/system_report.aiml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<aiml>
<category>
<pattern>SYSTEM_REPORT</pattern>
<template>
<date format="%I:%M %p" jformat="h:mm a"/> running version <get name="system.version" />.
up for <get name="system.uptime" />,
<get name="system.freeMemory" /> megabytes of memory available,
battery is <get name="system.batteryLevel" /> percent,
<get name="system.servoCount" /> servo motors online,
<get name="system.serviceCount" /> services running,

<condition name="system.errorsExist">
<li value="false">there are no errors</li>
<li value="true">there are <get name="system.errorCount" /> errors</li>
</condition>.

current state is <get name="state" />
</template>
</category>
</aiml>