Introduction
Introduction Statistics Contact Development Disclaimer Help
Add uplifting mode. - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit 17f97f1e6caf68ef0deecd513390205aaf9a68ea
parent d46cd06c7207188be72ecbb4f5b563c7884d5374
Author: Annna Robert-Houdin <[email protected]>
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(-)
---
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 "${prom…
} &
;;
+"${ircuser}, uplifting "*)
+ prompt="$(printf "%s\n" "${text}" | cut -c 18- | sed 's,\t, ,g')"
+ {
+ annna-say -s "${server}" -c "${channel}" "$(gpt-uplifting "${p…
+ } &
+ ;;
"Santa, "*|"Sannnta, "*|"santa, "*|"sannnta, "*)
personality="santa"
preprompt="$(cat ${modbase}/prompt-agents/${personality}.prompt.txt)"
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 misera…
+gpt "Your are a grumpy old Internet fart. Your sex life always has been misera…
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…
+
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.