Rules and Responses: If-This-Then-That
๐ Instructions
Bots work with rules: IF the user says 'hello', THEN reply 'Hi there!'. Let's write some!
Try the starter code u2014 it checks what the user typed and responds. Change the replies and add your own rules.
Use message.includes("word") to check for keywords.
๐
The code editor and XP reward for this lesson are part of Premium.
Unlock Premium
๐
This is a Premium Lesson
Subscribe to unlock the interactive code editor, run your own solutions, and earn XP for this lesson.
โญ Unlock Premium