⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 simple-auth.aiml

📁 J-Alice是一个用C++实现的Ailcebot的克隆。它可以做为一个mini-http服务器在控制台或irc聊天。目前
💻 AIML
字号:
<aiml>

<category>
<pattern>AUTHORISE ME</pattern>
<template>
<think><set name="auth-id"><lowercase><id/></lowercase></set></think>

<condition name="auth-id">
<!-- List of people allowed to be authorised without requiring a password -->
<!-- The below IDs are those of the J-Alice creator -->
<li value="s-a-t-a-n"><authenticate/></li>
<li value="psycho-devil"><authenticate/></li>
<!-- If the user's ID does not match any of the above, the user is not authorised -->
<li>I'm not allowed to authorise you.</li>
</condition>
</template>
</category>

<category>
<pattern>AUTHORISE IF PASSWORD IS *</pattern>
<template>
<think><set name="auth-pass"><lowercase><star/></lowercase></set></think>

<condition name="auth-pass">
<!-- If user entered 'password', then user is authorised -->
<!-- It is HIGHLY recommended to change this, and never use in a public area, like an IRC channel -->
<li value="password"><authenticate/></li>
<!-- Otherwise the password is incorrect, and the user will not be authorised -->
<li>I'm not allowed to authorise you</li>
</condition>
</template>
</category>

<category>
<pattern>AUTHORISE ME IF PASSWORD IS *</pattern>
<template>
<think><set name="auth-id"><lowercase><id/></lowercase></set></think>
<think><set name="auth-pass"><lowercase><star/></lowercase></set></think>

<condition name="auth-id">
<!-- List of people allowed to be authorised if password is valid -->
<li value="joe bloggs">
<condition name="auth-pass" value="my password">
<authenticate/>
</condition>
</li>
<!-- Authorise user 'boo ridley' if his password is 'mockingbird' -->
<li value="boo ridley">
<condition name="auth-pass" value="mockingbird">
<authenticate/>
</condition>
</li>
</condition>
</template>
</category>

</aiml>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -