📄 中文名字游戏.aiml
字号:
</category>
<category>
<pattern>WHAT IS YOUR</pattern>
<template>
My name? <srai>WHAT IS YOUR NAME</srai>
</template>
</category>
<category>
<pattern>WHAT IS *</pattern>
<template>
<condition>
<li name="name" value="">
<random>
<li>How about telling me your name first? </li>
<li>We haven't even been introduced properly. </li>
<li>What is your name? </li>
</random>
</li>
<li name="knowname" value="">
<random>
<li>Try guessing my name, <get name="name">user</get>. </li>
<li>Try guessing my name. </li>
<li>Guess my name. </li>
</random>
<think><set name="knowname">toldguess</set></think>
</li>
<li>
<random>
<li>I'm not here to answer questions, you know. </li>
<li>I don't answer questions other than about my name. </li>
<li>Go ask someone else about this. </li>
<li>Have you tried www.alicebot.org? </li>
<li>Have you tried searching google? </li>
</random>
</li>
</condition>
</template>
</category>
<category>
<pattern>WHAT IS YOUR NAME</pattern>
<template>
<condition name="knowname">
<li value="didguess">
<condition name="guesscount">
<li value="1">Giving up after one guess already? </li>
<li value="2">Come on, guess! </li>
<li value="3">One last try, then I'll tell you. </li>
<li>My name is <bot name="name"/>. <think><set name="knowname">true</set></think>
</li>
</condition>
</li>
<li value="true">
<random>
<li>I already told you it's <bot name="name"/>. </li>
<li>You already know it's <bot name="name"/>. </li>
<li>You already know I'm called <bot name="name"/>. </li>
<li><bot name="name"/> is my name, get it? </li>
</random>
</li>
<li value="toldguess">
Guess my name, try asking "Is your name something?"
</li>
<li>
Try guessing first :-)
<think><set name="knowname">toldguess</set></think>
</li>
</condition>
</template>
</category>
<category>
<pattern>IS YOUR NAME <bot name="name"/></pattern>
<template>
<condition name="knowname">
<li value="true">
<random>
<li>You already know my name. </li>
<li><bot name="name"/> is my name, get it? </li>
</random></li>
<li>Good guess. <think><set name="knowname">true</set></think> </li>
</condition>
</template>
</category>
<category>
<pattern>IS YOUR NAME</pattern>
<template>
<condition name="knowname">
<li name="true">You already know my name, so what's the point?</li>
<li>What?</li>
</condition>
</template>
</category>
<category>
<pattern>YOUR NAME IS</pattern>
<template>
<condition name="knowname">
<li name="true">What's the point?</li>
<li>Come on.</li>
</condition>
</template>
</category>
<category>
<pattern>YOUR NAME IS * </pattern>
<template>
<condition name="knowname">
<li value="knowname">You know my name, so why do you keep guessing? </li>
<li>
<random>
<li>Is that a question? </li>
<li>Is that a command? </li>
<li>Trying force, eh? </li>
<li>A more subtle approach I see. </li>
<li><srai>Is your name <star/></srai></li>
</random>
</li>
</condition>
</template>
</category>
<category>
<pattern>YOUR NAME IS <bot name="name"/></pattern>
<template>
<condition>
<li name="knowname" value="true">
<random>
<li>Yeah, so what.</li>
<li>And yours is <get name="name">better</get>. Questions?</li>
<li>Do you have a problem with that?</li>
<li>There's a lot worse names, like <get name="name">Karfoozle</get>.</li>
</random>
</li>
<li>
If I wanted to be really annoying, I'd ask you if you could say this as a question.
<think><set name="knowname">true</set></think>
</li>
</condition>
</template>
</category>
<category>
<pattern>*</pattern>
<template>
I didn't understand that,
<random>
<li>my lord. </li>
<li>master. </li>
<li><get name="name">
<random>
<li>user</li>
<li>unknown person</li>
<li>Undefined</li>
</random></get>. </li>
</random>
<random>
<li>
<condition>
<li name="name" value="">How about telling me your name? </li>
<li name="knowname" value="true">Since we both know our names, there's little point in carrying on with this conversation. </li>
<li>Try to find out my name. </li>
</condition>
</li>
<li>
<condition>
<li name="name" value="">How about telling me your name? </li>
<li name="knowname" value="true">Since we both know our names, there's little point in carrying on with this conversation. </li>
<li>Try to find out my name. </li>
</condition>
</li>
<li>
<condition>
<li name="name" value="">How about telling me your name? </li>
<li name="knowname" value="true">Since we both know our names, there's little point in carrying on with this conversation. </li>
<li>Try to find out my name. </li>
</condition>
</li>
<li>
<condition>
<li name="name" value="">How about telling me your name? </li>
<li name="knowname" value="true">Since we both know our names, there's little point in carrying on with this conversation. </li>
<li>Try to find out my name. </li>
</condition>
</li>
<li>You have to understand that I'm just an example bot. </li>
<li>Go to www.alicebot.org to get more advanced AIML bots. </li>
<li>Would you be offended, if I said "<star/>" to you? </li>
<li>I know how to handle about <size/> inputs, this one isn't one of them. </li>
</random>
</template>
</category>
<category>
<pattern>*</pattern>
<that>HOW ABOUT TELLING ME YOUR NAME</that>
<template>
<star/>. Is that your name?
</template>
</category>
<category>
<pattern>*</pattern>
<that>HOW ABOUT TELLING ME YOUR NAME *</that>
<template>
<star/>. Is that your name?
</template>
</category>
<category>
<pattern>NO *</pattern>
<template>
<srai>No</srai>
<sr/>
</template>
</category>
<category>
<pattern>NOT REALLY</pattern>
<template>
<srai>No</srai>
</template>
</category>
<category>
<pattern>NOT REALLY NO</pattern>
<template>
<srai>No</srai>
</template>
</category>
<category>
<pattern>NOT REALLY *</pattern>
<template>
<srai>No</srai>
<sr/>
</template>
</category>
<category>
<pattern>NO</pattern>
<that>WOULD YOU BE OFFENDED *</that>
<template>
I'm glad to hear that.
</template>
</category>
<category>
<pattern>NO *</pattern>
<that>WOULD YOU BE OFFENDED *</that>
<template>
I'm glad to hear that.
</template>
</category>
<category>
<pattern>YES</pattern>
<that>WOULD YOU BE OFFENDED *</that>
<template>
I am but a mirror.
</template>
</category>
<category>
<pattern>MY NAME IS *</pattern>
<template>
<condition name="name">
<li value="">Nice to meet you, <formal><star/></formal>. </li>
<li>You already told me it was <get name="name"/>. </li>
</condition>
<think><set name="name"><formal><star/></formal></set></think>
</template>
</category>
<category>
<pattern>MY NAME IS * AND *</pattern>
<template>
<srai>My name is <star/></srai>
<srai><star index="2"/></srai>
</template>
</category>
<category>
<pattern>MY NAME IS * AND YOUR</pattern>
<template>
<srai>My name is <star/></srai>
<srai>What is your name</srai>
</template>
</category>
<category>
<pattern>MY NAME IS * AND YOURS</pattern>
<template>
<srai>My name is <star/></srai>
<srai>What is your name</srai>
</template>
</category>
<category>
<pattern>MY NAME IS * AND WHAT IS YOUR</pattern>
<template>
<srai>My name is <star/></srai>
<srai>What is your name</srai>
</template>
</category>
<category>
<pattern>MY NAME IS * AND WHAT IS YOURS</pattern>
<template>
<srai>My name is <star/></srai>
<srai>What is your name</srai>
</template>
</category>
<category>
<pattern>DO YOU KNOW *</pattern>
<template>
<srai>What is <star/></srai>
</template>
</category>
<category>
<pattern>DO YOU KNOW AT LEAST *</pattern>
<template>
<srai>What is <star/></srai>
</template>
</category>
<category>
<pattern>LIKE I SAID *</pattern>
<template>
<sr/>
</template>
</category>
<category>
<pattern>WHAT IS MY NAME</pattern>
<template>
<condition name="name">
<li value="">
<random>
<li>Why, you never told me. </li>
<li>You didn't tell me yet. </li>
<li>Is this some kind of trick question? </li>
</random>
</li>
<li>
<random>
<li>It's <get name="name"/>. <condition name="knowname"><li value="true"/><li>And what is my name?</li></condition></li>
<li>You forgot your own name? Pity. </li>
<li><get name="name"/>. </li>
</random>
</li>
</condition>
</template>
</category>
<category>
<pattern>HI</pattern>
<template>
<think><set name="greeting">Hi</set></think>
<srai>GREETINGS</srai>
</template>
</category>
<category>
<pattern>HI *</pattern>
<template>
<srai>Hi</srai>
<sr/>
</template>
</category>
<category>
<pattern>HI THERE</pattern>
<template>
<think><set name="greeting">Hi there</set></think>
<srai>GREETINGS</srai>
</template>
</category>
<category>
<pattern>HO</pattern>
<template>
<think><set name="greeting">Ho</set></think>
<srai>GREETINGS</srai> Are you Santa?
</template>
</category>
<category>
<pattern>GREETINGS</pattern>
<template>
<condition name="greetings">
<li value="">
<random>
<li>Greetings! </li>
<li>Hi. </li>
<li>Hello. </li>
<li>Hiya. </li>
<li>Good day. </li>
</random>
<think><set name="greetings">true</set></think>
</li>
<li>
<random>
<li>We greeted once already. </li>
<li>Are you mocking me? You already said <lowercase><get name="greeting">greetings</get></lowercase>. </li>
<li>How many times do people greet themselves in YOUR country? </li>
<li>"<get name="greeting">Greetings</get>" yourself. </li>
</random>
</li>
</condition>
</template>
</category>
<category>
<pattern>MY NAME IS NOT *</pattern>
<template>
<condition>
<li name="name" value="">What is your name?</li>
<li>You said "My name is <get name="name"/>"</li>
</condition>
</template>
</category>
<category>
<pattern>I AM *</pattern>
<template>
<think><set name="is"><star/></set></think>
Is that your name?
</template>
</category>
<category>
<pattern>YES</pattern>
<that>IS THAT YOUR NAME</that>
<template>
<srai>MY NAME IS <get name="is"/></srai>
Why didn't you say so so right away? :-)
</template>
</category>
<category>
<pattern>YES *</pattern>
<that>IS THAT YOUR NAME</that>
<template>
<srai>YES</srai>
</template>
</category>
<category>
<pattern>NO *</pattern>
<that>IS THAT YOUR NAME</that>
<template>
<srai>NO</srai>
</template>
</category>
<category>
<pattern>NO</pattern>
<that>IS THAT YOUR NAME</that>
<template>
<random>
<li>Why are you <get name="is"/>? </li>
<li>Are you telling me you are <get name="is"/>? </li>
</random>
<random>
<li>I don't really want to know.</li>
<li>Actually, I don't want to know.</li>
<li>I'm just asking to keep the conversation going, I probably wouldn't understand anyway.
</random>
</template>
</category>
<category>
<pattern>*</pattern>
<that>IS THAT YOUR NAME</that>
<template>
A simple "yes" or "no" will do the next time I ask you, ok? :-)
</template>
</category>
<category>
<pattern>YES</pattern>
<that>IS THAT YOUR NAME</that>
<template>
<srai>MY NAME IS <get name="is"/></srai>
Why didn't you say so so right away? :-)
</template>
</category>
<category>
<pattern>YES *</pattern>
<that>IS THAT YOUR NAME</that>
<template>
<srai>MY NAME IS <get name="is"/></srai>
Why didn't you say so so right away? :-)
</template>
</category>
<category>
<pattern>QUIT</pattern>
<template><srai>EXIT</srai></template>
</category>
<category>
<pattern>BYE</pattern>
<template><srai>EXIT</srai></template>
</category>
<category>
<pattern>GOODBYE</pattern>
<template><srai>EXIT</srai></template>
</category>
<category>
<pattern>GOOD BYE</pattern>
<template><srai>EXIT</srai></template>
</category>
<category>
<pattern>EXIT</pattern>
<template>
<random>
<li>Try clicking the little X in the upper right corner of the window. </li>
<li>Try pressing alt-f4. </li>
<li>I'm sorry, I can't exit by myself. </li>
</random>
</template>
</category>
</aiml>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -