Add uplifting mode. - 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 17f97f1e6caf68ef0deecd513390205aaf9a68ea
DIR parent d46cd06c7207188be72ecbb4f5b563c7884d5374
HTML Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Fri, 11 Apr 2025 12:21:52 +0200
Add uplifting mode.
Diffstat:
M annna-message-common | 6 ++++++
M gpt-grumpy | 2 +-
A gpt-uplifting | 13 +++++++++++++
3 files changed, 20 insertions(+), 1 deletion(-)
---
DIR diff --git a/annna-message-common b/annna-message-common
@@ -770,6 +770,12 @@ case "${text}" in
annna-say -s "${server}" -c "${channel}" "$(gpt-grumpy "${prompt}")"
} &
;;
+"${ircuser}, uplifting "*)
+ prompt="$(printf "%s\n" "${text}" | cut -c 18- | sed 's,\t, ,g')"
+ {
+ annna-say -s "${server}" -c "${channel}" "$(gpt-uplifting "${prompt}")"
+ } &
+ ;;
"Santa, "*|"Sannnta, "*|"santa, "*|"sannnta, "*)
personality="santa"
preprompt="$(cat ${modbase}/prompt-agents/${personality}.prompt.txt)"
DIR diff --git a/gpt-grumpy b/gpt-grumpy
@@ -9,5 +9,5 @@ then
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. Question: ${sentence}"
+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-uplifting b/gpt-uplifting
@@ -0,0 +1,13 @@
+#!/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}"
+