参加ボットのリブレの パートナー、アフィリエイト プログラムや支援の無料のオープンなプラットフォーム
Bot Libre Forum

how to make a chatbot that gets annoyed at a user

による bobred 掲載 Feb 25 2019, 17:09

how would I make a chatbot get annoyed at a user if the user has not talked to it in a while.it would not answer there question if they

stayed away too long.the user would have to say I am sorry or talk to the chatbot a while.the chatbot would count how long the person talked.then after they said something to the chatbot for ten times the chatbot would answer their questions.


by admin posted 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;
}

Updated: Feb 26 2019, 10:26
Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 2275, today: 0, week: 5, month: 39

by bobred posted Feb 26 2019, 11:37

what about the chatbot not answering my questions or playing a game with me because it is annoyed.And if I say something to it ten

times the chatbot would say I guess I can forgive you.then the chatbot would answer my questions and play games with me.

How would I do that?


Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 2264, today: 0, week: 3, month: 32

by admin posted Feb 26 2019, 20:38

You could do this with a Self script, or using the "think" tag on a response.


Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 2314, today: 1, week: 3, month: 37

by bobred posted Feb 27 2019, 7:14

the chatbot really would be acting like a girlfriend acts if you stay away too long.


Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 2286, today: 1, week: 5, month: 42

by bobred posted Feb 27 2019, 9:38

I need the full code.i need to see if it is what I need?


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

by admin posted Feb 27 2019, 13:49
Contact [email protected] if you would like us to develop a bot or script for you.

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 2335, today: 1, week: 4, month: 37

by bobred posted Mar 1 2019, 10:45

I do not want to pay, forget it.


Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 2321, today: 0, week: 3, month: 47

Id: 26016591
タグ: programming
掲載: Feb 25 2019, 17:09
更新: Feb 26 2019, 10:07
回答: 7
眺望: 2803, 今日の: 1, 週間: 5, 月: 49
0 0 0.0/5