Simple ChatBot in PHP/CMD

by CristoferK in Living > Education

213 Views, 3 Favorites, 0 Comments

Simple ChatBot in PHP/CMD

bot.bmp

Hi!

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

The Code

1.png

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