Introduction: Simple ChatBot in PHP/CMD

About: I like programming and robotic!

Hi!

In this tutorial I will show you how to make a simple chatbot in CMD/PHP!

Step 1: The Code

Open Notepad and write this:

@echo off
:start

echo ChatBot

echo.

echo.

echo.

echo Hello there!

echo.

echo What's your name?

echo.

set /p name=

echo.

echo Hello %name%!

echo.

echo My name is Terminator

echo.

echo

How are you?

echo.

set /p health=

echo.

echo I am ok.

echo.

echo what are you?

echo.

set /p what=

echo.

echo You are a %what%? I am a robot!

pause

cls

goto:start