A ChatGPT based emulation of the therapist Doctor Kernel from the book "A digital Affair" by Neora Shem Shaul
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
|