[Solved] How To Make Chat Bot In Batch [closed]


search for keywords instead of full phrases:

@echo off
:loop
set /p input="> "
echo %input%|find /i "hi" >nul && echo Hello.
echo %input%|find /i "your name" >nul && echo My name is Rob. What's yours?
echo %input%|find /i "my name is" >nul && echo That's a nice name.
echo %input%|find /i "wheather" >nul && echo Wonderful. Sun is shining.
echo %input%|find /i "bye" >nul && (echo what a pity. See you! & goto :eof)
REM choose your keywords wisely...
goto :loop

Note: this is a very basic “show how”. No errorhandling at all.

1

solved How To Make Chat Bot In Batch [closed]