Simple ChatBot in PHP/CMD

Introduction: Simple ChatBot in PHP/CMD

About: I like programming and robotic!

Hi!

In this tutorial I will teach you how to make a simple chat bot in CMD/PHP!

Step 1: Open a File in Notepad

Open a new file in notepad and write:

Step 2: The Code

@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 What's your favorite food?

echo.

set /p food=

echo.

echo My favorite food is also %food%!

pause

cls

goto:start

Now save the this file as ChatBot.bat

Step 3: It's Ready!

I hope you like this project!

Here is the code:

Be the First to Share

    Recommendations

    • Robots Contest

      Robots Contest
    • Audio Challenge

      Audio Challenge
    • Micro:bit Contest

      Micro:bit Contest

    Comments

    0
    Varun Reddy099
    Varun Reddy099

    Question 10 months ago on Step 3

    After saving in Notepad How to run in cmd prompt