forked from gleuch/aiml-high
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.aiml.xml
176 lines (176 loc) · 5.34 KB
/
test.aiml.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<?xml version="1.0" encoding="ISO-8859-1"?>
<aiml>
<category>
<pattern>WHAT IS YOUR NAME</pattern>
<template>My name is <bot name="name"/>.</template>
</category>
<category>
<pattern>MY NAME IS <set name="clientName">*</set></pattern>
<template>Hey <get name="clientName"/>!</template>
</category>
<category>
<pattern>MY NAME IS <set name="clientName">*</set></pattern>
<template><get name="clientName"/><random><li>Hey</li><li>Hi</li><li>Hello</li></random> !</template>
</category>
<category>
<pattern>WHAT IS MY NAME</pattern>
<template>Your name is <get name="clientName"/></template>
</category>
<category>
<pattern>WHO ARE YOU</pattern>
<template>
<srai>WHAT IS YOUR NAME</srai>
</template>
</category>
<category>
<pattern>GIVE ME A LETTER</pattern>
<template>
<random>
<li>A</li>
<li>B</li>
<li>C</li>
</random>
</template>
</category>
<category>
<pattern>TEST SRAI IN RANDOM</pattern>
<template>
<random>
<li>
<srai>WHAT IS YOUR NAME</srai>
</li>
<li>
<srai>WHAT IS MY NAME</srai>
</li>
</random>
</template>
</category>
<category>
<pattern>TEST WILDCARD *</pattern>
<template>Thanks for testing!</template>
</category>
<category>
<pattern>TEST SR TAG</pattern>
<template>
<sr/>
</template>
</category>
<category>
<pattern>TEST SR IN RANDOM</pattern>
<template>
<random>
<li>
<sr/>
</li>
<li>
<srai>WHAT IS YOUR NAME</srai>
</li>
</random>
</template>
</category>
<category>
<pattern>TEST THE STAR TAG</pattern>
<template>
<star/>
</template>
</category>
<category>
<pattern>TEST THE THAT TAG</pattern>
<template>I start testing that.</template>
</category>
<category>
<pattern>TEST THAT-TAG. MATCH</pattern>
<that>I start testing that.</that>
<template>That matched quite well!</template>
</category>
<category>
<pattern>TEST THAT-TAG. DONT MATCH</pattern>
<that>I found something.</that>
<template>Sorry, that did not match!</template>
</category>
<category>
<pattern>YOU FEEL <set name="state">*</set></pattern>
<template>I feel <get name="state"/>!</template>
</category>
<category>
<pattern>HOW ARE YOU FEELING TODAY</pattern>
<template>
<condition name="state" value="happy">I am happy!</condition>
<condition name="state" value="sad">I am sad! </condition>
</template>
</category>
<category>
<pattern>TELL ME ABOUT YOUR FEELINGS</pattern>
<template>
<condition>
<li name="state" value="happy">I am happy!</li>
<li name="state" value="sad">I am sad!</li>
<li>I kinda feel nothing <srai>WHAT IS YOUR NAME</srai></li>
</condition>
</template>
</category>
<category>
<pattern>WHAT IS YOUR FEELING TODAY</pattern>
<template>
<condition name="state">
<li value="happy">Feeling happy! </li>
<li value="sad">Feeling sad today </li>
<li>I don't feel anything </li>
</condition>
</template>
</category>
<category>
<pattern>EXPLAIN *</pattern>
<template>Sorry, I do not have a clue</template>
</category>
<category>
<pattern>I AM *</pattern>
<template>Text before random<random><li><think><set name="clientAge"><star/></set></think></li><li><think><set name="clientAge">22</set></think></li></random> Text after random</template>
</category>
<category>
<pattern>HOW OLD AM I</pattern>
<template>You are <get name="clientAge"/></template>
</category>
<category>
<pattern>WHAT DO YOU KNOW ABOUT ME</pattern>
<template>Your name is <get name="clientName"/> and you are <get name="clientAge"/></template>
</category>
<category>
<pattern>TEST CONDITION AND SRAI</pattern>
<template>
<condition name="state">
<li value="happy">Feeling happy! <srai>WHAT IS YOUR NAME</srai></li>
<li value="sad">Feeling sad today <srai>WHAT IS MY NAME</srai></li>
<li>I don't feel anything <srai>HOW OLD AM I</srai></li>
</condition>
</template>
</category>
<category>
<pattern>DO UPPERCASE <set name="clientName">*</set></pattern>
<template>Hello <uppercase><get name="clientName" /></uppercase></template>
</category>
<category>
<pattern>DO LOWERCASE <set name="clientName">*</set></pattern>
<template>Hello <lowercase><get name="clientName" /></lowercase></template>
</category>
<category>
<pattern>DO FORMAL CASE <set name="clientName">*</set></pattern>
<template>Hello <formal><get name="clientName" /></formal></template>
</category>
<category>
<pattern>DO SENTENCE <set name="clientName">*</set></pattern>
<template><sentence><get name="clientName" /></sentence> is the best.</template>
</category>
<category>
<pattern>SUPPORT BR TAGS</pattern>
<template>This<br/>is<br/>a<br/>bot.</template>
</category>
<category>
<pattern>I LIKE GIFS</pattern>
<template>GIF this: <img src="GIF" /></template>
</category>
<category>
<pattern>*</pattern>
<template>I found nothing.</template>
</category>
</aiml>