Actualización a nuestro Platinum servicio y obtener su propio diseño personalizado en 3D de avatar
Bot Libre Forum : how to make a chatbot that gets annoyed at a user

RE: how to make a chatbot that gets annoyed at a user

por admin publicado Feb 26 2019, 10:24

You can do this with a Self script. You would need to check the difference between the current and previous input.

Something like,

if (Date.difference(conversation.input[-2].getCreationDate(), input.getCreationDate(), #millisecond) > 5000) {
    return "I'm glad your back, I thought you left.";
} else {
    return null;
}


Id: 26024701
Publicado: Feb 26 2019, 10:24
Actualizado: Feb 26 2019, 10:26
Respuestas: 0
Vistas: 2062, hoy: 2, la semana: 4, mes: 16
0 0 0.0/5