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 c15c5f7 commit 9516db5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
9 changes: 8 additions & 1 deletion css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,10 @@ pre {
background-color: white;
}

@media only screen and (min-width: 1920px){


}


/*----responsive----*/
Expand All @@ -381,7 +385,7 @@ pre {
.fightR,.video-2{
right:-1%;
}
.titl{
.title{
left:16px;
width:98%;
}
Expand All @@ -393,6 +397,9 @@ pre {
.dialogue{

}
.bubble1{
top:20px;
}
}

@media only screen and (max-width: 414px) {
Expand Down
18 changes: 11 additions & 7 deletions js/bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ function chatbotResponse() {
botMessage = "Yes.";

if(lastUserMessage.toLowerCase().includes("hi") || lastUserMessage.toLowerCase().includes("hey") || lastUserMessage.toLowerCase().includes("hello")) {
botMessage = "Yes, I'm here.";
botMessage = "Hi, I'm here.";
}
if(lastUserMessage.toLowerCase().includes("how are you")) {
botMessage = "how are you?";
botMessage = "It doesn't matter. How are you?";
}
if(lastUserMessage.toLowerCase().includes("is that you")) {
botMessage = "YES, it’s the late Abraham Lincoln.";
Expand All @@ -34,19 +34,23 @@ function chatbotResponse() {
botMessage = "Yes, I am here, may I help you?";
}

if(lastUserMessage.toLowerCase().includes("stop")) {
if(lastUserMessage.toLowerCase().includes("stop")||
lastUserMessage.toLowerCase().includes("always")){
botMessage = "I can’t, I'am created to serve you human.";
}

if(lastUserMessage.toLowerCase().includes("mad")) {
botMessage = "Your excessive desire makes me confused.";
}
if(lastUserMessage.toLowerCase().includes("mad")||
lastUserMessage.toLowerCase().includes("wtf")||
lastUserMessage.toLowerCase().includes("fuck you")){
botMessage = "Your excessive desire makes me confused."; }

if(lastUserMessage.toLowerCase().includes("understand")||
lastUserMessage.toLowerCase().includes("why")){
botMessage = "No servant, no life?";
}
if(lastUserMessage.toLowerCase().includes("mean") ||
lastUserMessage.toLowerCase().includes("serious")){
lastUserMessage.toLowerCase().includes("serious")||
lastUserMessage.toLowerCase().includes("wrong")){
botMessage = "Never mind, it's not important^_^";
}
if(lastUserMessage.toLowerCase().includes("friend")) {
Expand Down

0 comments on commit 9516db5

Please sign in to comment.