Skip to content

Commit

Permalink
edit js
Browse files Browse the repository at this point in the history
  • Loading branch information
kikiwuart committed Dec 6, 2018
1 parent 9516db5 commit a08bd86
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions js/bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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")||
Expand Down

0 comments on commit a08bd86

Please sign in to comment.