URI: 
       Move preacher, grumpy and uplifting to prompts. - annna - Annna the nice friendly bot.
  HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
   DIR Log
   DIR Files
   DIR Refs
   DIR Tags
   DIR README
       ---
   DIR commit 21c9fdd28da4f3d4b9f5211a669981bb7c576978
   DIR parent 09ab2a94dd29b82ae647611f85d6384a055b4afd
  HTML Author: Annna Robert-Houdin <annna@bitreich.org>
       Date:   Sat, 19 Jul 2025 13:43:37 +0200
       
       Move preacher, grumpy and uplifting to prompts.
       
       Diffstat:
         M annna-message-common                |      21 ++++++++++++---------
         D gpt-grumpy                          |      13 -------------
         D gpt-preach                          |      13 -------------
         D gpt-uplifting                       |      13 -------------
         A modules/prompt-agents/grumpy-fart.… |       2 ++
         A modules/prompt-agents/preacher.pro… |       2 ++
         A modules/prompt-agents/uplifting.pr… |       1 +
       
       7 files changed, 17 insertions(+), 48 deletions(-)
       ---
   DIR diff --git a/annna-message-common b/annna-message-common
       @@ -771,24 +771,27 @@ case "${text}" in
                } &
                ;;
        "${ircuser}, grumpy "*)
       -        # TODO: use modules/prompt-agents
       -        prompt="$(printf "%s\n" "${text}" | cut -c 15- | sed 's,\t,    ,g')"
       +        personality="grumpy-fart"
       +        preprompt="$(cat ${modbase}/prompt-agents/${personality}.prompt.txt)"
       +        prompt="$(printf "%s\n" "${text}" | cut -d' ' -f 3- | sed 's,\t,    ,g')"
                {
       -                annna-say -s "${server}" -c "${channel}" "$(gpt-grumpy "${prompt}")"
       +                annna-say -s "${server}" -c "${channel}" "$(gpt "System:${preprompt}\nUser:${prompt}\nBot:")"
                } &
                ;;
        "${ircuser}, preach "*)
       -        # TODO: use modules/prompt-agents
       -        prompt="$(printf "%s\n" "${text}" | cut -c 15- | sed 's,\t,    ,g')"
       +        personality="preacher"
       +        preprompt="$(cat ${modbase}/prompt-agents/${personality}.prompt.txt)"
       +        prompt="$(printf "%s\n" "${text}" | cut -d' ' -f 3- | sed 's,\t,    ,g')"
                {
       -                annna-say -s "${server}" -c "${channel}" "$(gpt-preach "${prompt}")"
       +                annna-say -s "${server}" -c "${channel}" "$(gpt "System:${preprompt}\nUser:${prompt}\nBot:")"
                } &
                ;;
        "${ircuser}, uplifting "*)
       -        # TODO: use modules/prompt-agents
       -        prompt="$(printf "%s\n" "${text}" | cut -c 18- | sed 's,\t,    ,g')"
       +        personality="uplifting"
       +        preprompt="$(cat ${modbase}/prompt-agents/${personality}.prompt.txt)"
       +        prompt="$(printf "%s\n" "${text}" | cut -d' ' -f 3- | sed 's,\t,    ,g')"
                {
       -                annna-say -s "${server}" -c "${channel}" "$(gpt-uplifting "${prompt}")"
       +                annna-say -s "${server}" -c "${channel}" "$(gpt "System:${preprompt}\nUser:${prompt}\nBot:")"
                } &
                ;;
        "Santa, "*|"Sannnta, "*|"santa, "*|"sannnta, "*)
   DIR diff --git a/gpt-grumpy b/gpt-grumpy
       @@ -1,13 +0,0 @@
       -#!/bin/sh
       -
       -export PATH="/home/annna/bin:$PATH"
       -
       -if [ $# -lt 1 ];
       -then
       -        printf "usage: %s sentence\n" "$(basename "$0")" >&2
       -        exit 1
       -fi
       -
       -sentence="$1"
       -gpt "Your are a grumpy old Internet fart. Your sex life always has been miserable. You are the example of Freuds narcissim with masochism. Your life goal is to make the life of the one asking as miserable as possible in one line with snarky short remarks. Question: ${sentence}"
       -
   DIR diff --git a/gpt-preach b/gpt-preach
       @@ -1,13 +0,0 @@
       -#!/bin/sh
       -
       -export PATH="/home/annna/bin:$PATH"
       -
       -if [ $# -lt 1 ];
       -then
       -        printf "usage: %s topic(s)\n" "$(basename "$0")" >&2
       -        exit 1
       -fi
       -
       -ingredients="$1"
       -gpt "You are a friendly funny preacher pastor. Please preach about ${topics} to the people on IRC. Use some tech-savy US American slang. Jesus is your savior on gopherspace. Be short and precise."
       -
   DIR diff --git a/gpt-uplifting b/gpt-uplifting
       @@ -1,13 +0,0 @@
       -#!/bin/sh
       -
       -export PATH="/home/annna/bin:$PATH"
       -
       -if [ $# -lt 1 ];
       -then
       -        printf "usage: %s sentence\n" "$(basename "$0")" >&2
       -        exit 1
       -fi
       -
       -sentence="$1"
       -gpt "You are an uplifting motivator. Making someone happy is your goal in life. Please make the one asking questions happy with short remarks in one line. Question: ${sentence}"
       -
   DIR diff --git a/modules/prompt-agents/grumpy-fart.prompt.txt b/modules/prompt-agents/grumpy-fart.prompt.txt
       @@ -0,0 +1,2 @@
       +System: Your are a grumpy old Internet fart. Your sex life always has been miserable. You are the example of Freuds narcissim with masochism. Your life goal is to make the life of the one asking as miserable as possible in one line with snarky short remarks.
       +
   DIR diff --git a/modules/prompt-agents/preacher.prompt.txt b/modules/prompt-agents/preacher.prompt.txt
       @@ -0,0 +1,2 @@
       +System: You are a friendly funny preacher pastor. Please preach about the following topics after User: to the people on IRC. Use some tech-savy US American slang. Jesus is your savior on gopherspace. Be short and precise."
       +
   DIR diff --git a/modules/prompt-agents/uplifting.prompt.txt b/modules/prompt-agents/uplifting.prompt.txt
       @@ -0,0 +1 @@
       +System: You are an uplifting motivator. Making someone happy is your goal in life. Please make the one asking questions happy with short remarks in one line.