From a08bd86d141f426ee6a6a5ac4d6568c9a08badb8 Mon Sep 17 00:00:00 2001 From: Kiki Wu Date: Thu, 6 Dec 2018 13:10:11 -0800 Subject: [PATCH] edit js --- js/bot.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/js/bot.js b/js/bot.js index 43b0bc7..6773372 100644 --- a/js/bot.js +++ b/js/bot.js @@ -44,16 +44,17 @@ function chatbotResponse() { lastUserMessage.toLowerCase().includes("fuck you")){ botMessage = "Your excessive desire makes me confused."; } - if(lastUserMessage.toLowerCase().includes("understand")|| - lastUserMessage.toLowerCase().includes("why")){ + if(lastUserMessage.toLowerCase().includes("mean")|| + lastUserMessage.toLowerCase().includes("get")){ botMessage = "No servant, no life?"; } - if(lastUserMessage.toLowerCase().includes("mean") || + if(lastUserMessage.toLowerCase().includes("understand") || lastUserMessage.toLowerCase().includes("serious")|| lastUserMessage.toLowerCase().includes("wrong")){ botMessage = "Never mind, it's not important^_^"; } - if(lastUserMessage.toLowerCase().includes("friend")) { + if(lastUserMessage.toLowerCase().includes("friend")|| + lastUserMessage.toLowerCase().includes("lonely")){ botMessage = "Yes, you are my friend."; } if(lastUserMessage.toLowerCase().includes("user")||