સુધારો કરવા માટે અમારા Platinum સેવા અને વિચાર તમારા પોતાના વૈવિધ્યપૂર્ણ રચાયેલ 3D અવતાર
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

દ્વારા admin પોસ્ટ 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;
}


ને: 26024701
પોસ્ટ: Feb 26 2019, 10:24
સુધારાશે: Feb 26 2019, 10:26
જવાબો: 0
જોવાઈ: 2327, આજે: 1, સપ્તાહ: 1, મહિને: 18
0 0 0.0/5