-
Notifications
You must be signed in to change notification settings - Fork 0
/
learn.bat
37 lines (26 loc) · 874 Bytes
/
learn.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
::learn.bat
@echo off
:no
rem words in question
set /p will_say=<said.txt
echo AI: you can stop my learn protocol at any time by simply typing "stop"
echo AI: I'm sorry what should i have said in
echo response to "%will_say%"
set /p response=
if "%response%"=="stop" goto bottom
echo so i should say this "%response%" in response to "%will_say%"
set /p yes_no=
if "%yes_no%" == "yes" goto 1
if "%yes_no%" == "no" goto no else echo please say "yes" or "no" thank you
:1
:1
echo AI: now writing to memory please wait
echo user: %will_say% ^/^/^/^/ AI:%response%>>chat_database.txt
echo AI: great i'll have a permanent record of that ^:^)
call cutter.bat
echo call talk.bat)>> chat_database.bat
type "if variable.txt">> chat_database.bat
echo "%will_say%" (>> chat_database.bat
echo call talk.bat) else (call learn.bat)>>chat_database.bat
:bottom
call temp_talk.bat