A ChatGPT based emulation of the therapist Doctor Kernel from the book "A digital Affair" by Neora Shem Shaul
Nevar pievienot vairāk kā 25 tēmas
Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
123456789101112131415 |
- #!/bin/sh
- . ./.env
- . venv/bin/activate
- while [ 1 ] ; do
- LOGFILE=log-$(date +%Y%m%d-%H%M%S).txt
- python doctor.py|tee logs/$LOGFILE
- # Only 3rd '>' counts. We should also skip '<Enter>' in the header ;)
- if [ $(grep -c '>' logs/$LOGFILE) -lt 3 ] ; then
- rm logs/$LOGFILE
- dialog --title "Session aborted" --msgbox "Hit <Enter> to continue..." 5 60
- else
- python genlogs.py
- dialog --title "Session saved" --msgbox "Session saved to file $LOGFILE" 5 60
- fi
- done
|