I’m making a chat bot...
Elijah Fajimi 10 May 2020 18:33
I’m trying to make a chatting system and here’s the code:
Define chat()=
Prgm
Requeststr “Say Something:”,I,0
If I=“test” Then
Disp “You: “,I
Wait 1
Disp “Java: Test is valid”
Wait 3
Requeststr “Say something:”,I,0
Elseif I=“r” then
Disp “You: “,I
Wait 1
Disp “Java: Test is valid”
Endif
Endprgm
How do I make any phrase/word be able to be said on any “say something”? Because I just says say something I type r and it says say something again and then I say r and it works. I want to not make it an orderly fashion and make it work every time… please help me…