Hi I'm newbie need help to fix my script !
I try to create chatbot in bat script but need more suggestion for making realistic chatbot with brain and knowledge.
this is that script :
@ echo off
title STILL BLACK chatbot
: early
color 1b
: start
echo hi, how are you ??!
set /p how=
echo oh %how% doing the same with me!
pause
echo My Name STILL BLACK !!! Who's your name ?
set /p name=
echo Nice to meet you echo %name%!
pause
echo how old are you %name% ?
set /p age=
echo hmmm ... %age% !
pause
echo where do you live ?
set /p live=
echo exactly where is %live% that place?
set /p exactly=
echo wow %exactly% I rather not be there?!?
goto start
Labels must be coded as :start :early and so on not : start : early, i.e. space after colon is not allowed.
can you help me some idea to add more script to make this better chatbot because I'm lack of knowledge about bat script :)
I guessed your knowledge of batch scripting does not suffice to code a chatbot, however here the problem is not knowledge but the tool itself. Batch is aimed to automate system control and is not suited to alphanumeric processing. A true programming language is needed you can master without uncertainty. Artificial intelligence is not for newbie.
maybe something wise if you can share knowledge to be learned by those who do not know
Well, I understand you may be disappointed, but be aware Programming Forum is a place where people post specific questions to get help assumed they master the required knowlege to implement the hints. Here the key point: you can get tips NOT a full class on the general issue. If you want help to solve an equation and you can't master algebra there is nothing to do. Your chatbot script is a programming challenge that needs a good knowledge of batch scripting and logic rules. According to my example this is not an algebraic eqution but advanced calculus.
First of all you need to own a strong knowledge of batch language and you can google to find websites offering free tutorials surely better than I can give (by the way English is not my mothertongue since I am italian). Then programming practice must follow; eventually you may find the required help on Programming Forum.
To see how complex may be batch scripting type help | more to get the full index of batch op codes and then explore them by help op-code (e.g. help set).
Houses are built from the basement not beginning from the roof.
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |