[alicebot-general] Setting predicates to value of a variable

Alan Haymes a.haymes at nicobloc.com
Tue May 2 12:28:18 PDT 2006


Hi Dick - I realise now that this is a Pandorabots problem.  When I pasted
your script into one of my aiml files and  did a 'get' on the predicate
"current_time", the following was displayed as the bot response:-

var now = new java.util.Date() var hour = now.getHours() var minute =
now.getMinutes() now = null var ampm = "" if (hour >= 12) { hour -= 12 ampm
= "PM" } else ampm = "AM" hour = (hour == 0) ? 12 : hour if (minute < 10)
minute = "0" + minute hour + ":" + minute + " " + ampm;

instead of the actual time, therefore indicating that this feature is not
properly implented in Pandorbots.

Thanks.
--
View this message in context: http://www.nabble.com/Re%3A-Setting-predicates-to-value-of-a-variable-t1541320.html#a4197855
Sent from the Alicebot General forum at Nabble.com.



More information about the alicebot-general mailing list