Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3f08621

Browse files
Update ChatBotMain.java
1 parent 29cc920 commit 3f08621

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎Chatboat -Using Swing-AI/ChatBotMain.java‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ void action()
127127
textArea.setText("");
128128
textField_1.setText("");
129129
}
130-
else if(query.contains("hi")||query.contains("hey")||query.contains("hola")||query.contains("hello"))
130+
else if(query.contains("hi")||query.contains("hey")||query.contains("hola")||query.contains("hello") || query.contails("hey whats up")
131131
{
132132
Random rand=new Random();
133-
int a=rand.nextInt(4);
133+
int a=rand.nextInt(5);
134134
if(a==0)
135135
{
136136
ai("Hey,I'm Here");
@@ -151,6 +151,10 @@ else if(a==4)
151151
{
152152
ai("Hello,How u doing?");
153153
}
154+
else if(a==5)
155+
{
156+
ai("Hello,How u doing? whats up");
157+
}
154158

155159
}
156160
else if(query.contains("fine")||query.contains("I'm fine")||query.contains("am okay"))

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /