Você sabia que o Bot Libre também fornece avatares em 3D e um free web speech API?
Bot Libre Forum

chatbot is not saying the correct time

por bobred postado Jun 27 2018, 12:40

pioyu2 chatbot is not telling me the correct time.here is the aiml script I am using.timer time.txt

by admin posted Jun 28 2018, 7:31
What response do you get from the bot, and what response do you expect?

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 262, today: 0, week: 1, month: 1

by bobred posted Jun 28 2018, 9:05

i want pioyu2 chatbot to say the time in texas it is currently.

it's response to the question what time it is is the locale time is:9: AM. when it is actually 7 am.

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 252, today: 1, week: 1, month: 1

by admin posted Jul 3 2018, 11:09

The local is not the timezone, it just affects how the date is printed.

To set the timezone of the date use the "timezone" attribute set to the GMT hour offset.

<date format="%I: %p" timezone="+2" locale="en_US"/>

You can also use Self to print a date, even from AIML,

<template>The local time is: <self>Date.setTimeZone(Date.time(), "EST")</self></template>

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 250, today: 0, week: 2, month: 2

Id: 22624204
Tags: aiml
Postado: Jun 27 2018, 12:40
Respostas: 3
Pontos de vista: 418, hoje: 1, semana: 4, mês: 4
Eu tenho certeza que
Bandeira post como ofensivas, ou em violação das regras do site