Skip to content
This repository has been archived by the owner on Oct 11, 2019. It is now read-only.

Commit

Permalink
回答不知道
Browse files Browse the repository at this point in the history
  • Loading branch information
bigeagle committed Feb 5, 2012
1 parent 256358a commit 920072b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion aiml/PatternMgr.py
Expand Up @@ -146,7 +146,7 @@ def match(self, pattern, that, topic):
input = string.upper(pattern)
input = self._puncStripRE.sub("", input)
input = self._upuncStripRE.sub(u"", input)
print input
#print input
if that.strip() == u"": that = u"ULTRABOGUSDUMMYTHAT" # 'that' must never be empty
thatInput = string.upper(that)
thatInput = re.sub(self._whitespaceRE, " ", thatInput)
Expand Down
14 changes: 14 additions & 0 deletions aiml_set/general.aiml
@@ -1,5 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<aiml>
<category>
<pattern>*</pattern>
<template>
<think><set name="star"><star /></set></think>
<random>
<li>唔... 主人没有教我怎么回答"<get name="star" />"... </li>
<li>唔... </li>
<li>Na Ni ? </li>
<li>喵... (睁大眼睛看着你 </li>
<li>摇尾巴... </li>
</random>
</template>
</category>

<category>
<pattern>你 好</pattern>
<template>
Expand Down
Binary file modified xdtuxbot.brn
Binary file not shown.

0 comments on commit 920072b

Please sign in to comment.