| Move preacher, grumpy and uplifting to prompts. - annna - Annna the nice friend… | |
| git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
| Log | |
| Files | |
| Refs | |
| Tags | |
| README | |
| --- | |
| commit 21c9fdd28da4f3d4b9f5211a669981bb7c576978 | |
| parent 09ab2a94dd29b82ae647611f85d6384a055b4afd | |
| Author: Annna Robert-Houdin <[email protected]> | |
| 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(-) | |
| --- | |
| 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 "${prom… | |
| + annna-say -s "${server}" -c "${channel}" "$(gpt "System:${prep… | |
| } & | |
| ;; | |
| "${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 "${prom… | |
| + annna-say -s "${server}" -c "${channel}" "$(gpt "System:${prep… | |
| } & | |
| ;; | |
| "${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 "${p… | |
| + annna-say -s "${server}" -c "${channel}" "$(gpt "System:${prep… | |
| } & | |
| ;; | |
| "Santa, "*|"Sannnta, "*|"santa, "*|"sannnta, "*) | |
| 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 misera… | |
| - | |
| 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} t… | |
| - | |
| 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… | |
| - | |
| diff --git a/modules/prompt-agents/grumpy-fart.prompt.txt b/modules/prompt-agen… | |
| @@ -0,0 +1,2 @@ | |
| +System: Your are a grumpy old Internet fart. Your sex life always has been mis… | |
| + | |
| diff --git a/modules/prompt-agents/preacher.prompt.txt b/modules/prompt-agents/… | |
| @@ -0,0 +1,2 @@ | |
| +System: You are a friendly funny preacher pastor. Please preach about the foll… | |
| + | |
| diff --git a/modules/prompt-agents/uplifting.prompt.txt b/modules/prompt-agents… | |
| @@ -0,0 +1 @@ | |
| +System: You are an uplifting motivator. Making someone happy is your goal in l… |