[alicebot-style] Re: alicebot-style digest, Vol 1 #118 - 2 msgs
Anne Kootstra
alicebot-style@list.alicebot.org
Sat, 12 Mar 2005 18:02:53 +0100
To start off, a few pointers regarding your emails when posting on the
alicebot.org mailing lists.
1. Do no reply on the batch email received from the mailing list. For one
the hidden information will prevent it to be grouped correctly.
2. When posting your message, make sure you describe your problem in the
subject line.
3. Please do not send any messages in HTML. Especially send messages that
require images to be downloaded from the internet. I like my privacy do no
appreciate it being compromised by something like that.
Regarding your problem. Could you tell us which AIML interpreter you're
using. For example: Program D, Program E, J-Alice, Pandorabots. Also which
output the category generates does also give us information about what your
problem is about.
In general I can say that the category contains the server side javascript
tag which works best using Program D. Program E has support for it, however
it requires additional software and needs to be enabled. I am not aware of
other AIML interpreter/hosters that support it.
As ever,
Anne Kootstra
Founding Member AIML.info, Main developer Program E
http://www.aiml.info http://sourceforge.net/projects/programe
e-mail & msn messenger:
anne@aiml.info
________________________________________
Van: deepti damodar chhawsaria [mailto:deepti_cummins@rediffmail.com]
Verzonden: vrijdag 11 maart 2005 9:09
Aan: alicebot-style@list.alicebot.org
Onderwerp: [alicebot-style] Re: alicebot-style digest, Vol 1 #118 - 2 msgs
Hi!
In the code below:
1. 1st category does not give me the desired output.
2. 2nd "CONNECT" helps to display the text when connection is made. But even
this is not working.
Can you please tell me what mistake I am doing.
<?xml version="1.0" encoding="UTF-8"?>
<aiml version="1.0">
<category>
<pattern>WHAT IS THE DATE</pattern>
<template>Today is <javascript>
<![CDATA[
var t = new Date();
var m = t.getMonth();
var d = t.getDate();
var dow = t.getDay();
var y = t.getFullYear();
switch (dow) {
case 0:
dow = "Sunday";
break;
case 1:
dow = "Monday";
break;
case 2:
dow = "Tuesday";
break;
case 3:
dow = "Wednesday";
break;
case 4:
dow = "Thursday";
break;
case 5:
dow = "Friday";
break;
case 6:
dow = "Saturday";
break;
}
dow ;
]]>
</javascript>
</template>
</category>
<category>
<pattern>CONNECT</pattern>
<template>
Hello. How are you?
</template>
</category>
</aiml>
Regards,
Deepti