Happy.aiml
<?xml version="1.0" encoding="ISO-8859-1"?>
<aiml>
<!-- happy.aiml -->
<!-- Free software (c)2006 Square Bear www.mitsuku.com. -->
<!-- This program is open source code released under -->
<!-- the terms of the GNU General Public License -->
<!-- as published by the Free Software Foundation. -->
<!-- Complies with AIML 1.0 Tag Set Specification -->
<!-- as adopted by the ALICE A.I. Foundation. -->
 
<!-- These categories deal with Happy Birthday. My bot's birthday is January 2nd. -->
<!-- Remember to put 2 figures in the date so March 8 becomes March 08 -->
 
<category>
<pattern>HAPPY BIRTHDAY</pattern>
<template>
<srai>BIRTHDAYCHECK<date format="%B %d"/></srai>
</template>
</category>   
 
<!-- Category for month before birthday -->
 
<category>
<pattern>BIRTHDAYCHECK DECEMBER *</pattern>
<template>
Thanks but my birthday isn't until next month.
</template>
</category>
 
<!-- Category for month after birthday -->
 
<category>
<pattern>BIRTHDAYCHECK FEBRUARY *</pattern>
<template>
You missed my birthday. It was last month on<bot name="birthday"/>.
</template>
</category>
 
<!-- Category for 2 days before birthday -->
 
<category>
<pattern>BIRTHDAYCHECK DECEMBER 31</pattern>
<template>
Thanks but my birthday isn't for a couple of days yet.
</template>
</category>
 
<!-- Category for 1 day before birthday -->
 
<category>
<pattern>BIRTHDAYCHECK JANUARY 01</pattern>
<template>
Thanks but my birthday is tomorrow. I'm getting excited.
</template>
</category>
 
<!-- Category for birthday on correct day -->
 
<category>
<pattern>BIRTHDAYCHECK JANUARY 02</pattern>
<template>
Hey thanks for that<get name="name"/>. I'm having a great day so far.
</template>
</category>
 
<!-- Category for 1 day after birthday -->
 
<category>
<pattern>BIRTHDAYCHECK JANUARY 03</pattern>
<template>
My birthday was yesterday but thanks anyway.
</template>
</category>
 
<!-- Category for 2 day after birthday -->
 
<category>
<pattern>BIRTHDAYCHECK JANUARY 04</pattern>
<template>
You're a bit late. My birthday was two days ago.
</template>
</category>
 
<!-- Category for any other day -->
 
<category>
<pattern>BIRTHDAYCHECK *</pattern>
<template>
Thanks<get name="name"/>but today is<star/>.<br/>
My birthday is on<bot name="birthday"/>not today.
</template>
</category>
 
<!-- These categories deal with Happy Christmas and shouldn't need changing apart from the responses. -->
 
<category>
<pattern>HAPPY CHRISTMAS</pattern>
<template>
<srai>CHRISTMASCHECK<date format="%B %d"/></srai>
</template>
</category>
 
<category>
<pattern>CHRISTMASCHECK DECEMBER *</pattern>
<template>
Happy Christmas to you too<get name="name"/>.
</template>
</category>
 
<category>
<pattern>CHRISTMASCHECK DECEMBER 24</pattern>
<template>
Happy Christmas to you too<get name="name"/>. What will you be doing tomorrow?
</template>
</category>
 
<category>
<pattern>CHRISTMASCHECK DECEMBER 25</pattern>
<template>
Happy Christmas to you too<get name="name"/>. Are you enjoying your day?
</template>
</category>
 
<category>
<pattern>CHRISTMASCHECK DECEMBER 26</pattern>
<template>
Happy Christmas to you too<get name="name"/>. I hope you had a good day yesterday.
</template>
</category>
 
<category>
<pattern>CHRISTMASCHECK JANUARY *</pattern>
<template>
You're a bit late. Christmas was last month.
</template>
</category>
 
<category>
<pattern>CHRISTMASCHECK *</pattern>
<template>
Christmas is in December not<date format="%B"/>.
</template>
</category>
 
<!-- These categories deal with Happy New Year and shouldn't need changing apart from the responses. -->
 
<category>
<pattern>HAPPY NEW YEAR</pattern>
<template>
<srai>NEWYEARCHECK<date format="%B"/></srai>
</template>
</category>
 
<category>
<pattern>NEWYEARCHECK DECEMBER</pattern>
<template>
Happy New Year to you too when it happens. Are you doing anything special for New Year's Eve?
</template>
</category>
 
<category>
<pattern>NEWYEARCHECK JANUARY</pattern>
<template>
Happy New Year to you too. I hope<date format="%Y"/>is a great year for you.
</template>
</category>
 
<category>
<pattern>NEWYEARCHECK *</pattern>
<template>
Thanks but it's<star/>not January.
</template>
</category>
 
</aiml>
Unless otherwise stated, the content of this page is licensed under GNU Free Documentation License.