**This website will be shutdown permanently soon**

This website and apps are for sale. Only serious offers will be considered. Contact [email protected]

** Server is current under maintenance, any changes will be lost **

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

durch admin gepostet 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
Gepostet: Feb 26 2019, 10:24
Aktualisiert: Feb 26 2019, 10:26
Antworten: 0
Ansichten: 1833, heute: 7, Woche: 9, Monat: 21
0 0 0.0/5