Być bot-dostawcy z bot bot Libre platformy chmurowej
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

w admin wysłany 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;
}


Identyfikator: 26024701
Wysłany: Feb 26 2019, 10:24
Aktualizacja: Feb 26 2019, 10:26
Odpowiedzi: 0
Widok: 1765, dziś: 1, tydzień: 3, miesiąc: 5
0 0 0.0/5