hello = io.read()
print("Hi!")
print('What is Your Name?')
name = io.read()
print('Hello, ' .. name .. '!')
print("Let us have a conversation!")
print("Alright! What would you like to talk about?")
jokes = io.read()
print("What is a dentists favorite time?")
When = io.read()
print("2:30!")
print("Would you like to talk more?")
more = io.read()
if more == "Yes" then
print("Ok! What would you like to talk about?")
no = io.read()
if no == "No" then
end
end
print("Goodbye!")
os.execute("cls")
Movies = io.read()
if Movies == "Movies" then
print("What movies have you watched recently?")
end
io.read()
what it is supposed to do is be a chatbot. What it does is in the final line, it is supposed to say "What movies have you seen recently?" Instead I have to type "Movies" twice. The first it pops up "Goodbye!" Please help.