Introduction
Introduction Statistics Contact Development Disclaimer Help
Add grumpy mode to annna. - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit d46cd06c7207188be72ecbb4f5b563c7884d5374
parent d19a4f95de58e253611f939fb778fb85e0d56134
Author: Annna Robert-Houdin <[email protected]>
Date: Fri, 11 Apr 2025 12:16:22 +0200
Add grumpy mode to annna.
Diffstat:
M annna-message-common | 6 ++++++
A gpt-grumpy | 13 +++++++++++++
2 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/annna-message-common b/annna-message-common
@@ -764,6 +764,12 @@ case "${text}" in
annna-say -s "${server}" -c "${channel}" "$(gpt "${prompt}")"
} &
;;
+"${ircuser}, grumpy "*)
+ prompt="$(printf "%s\n" "${text}" | cut -c 15- | sed 's,\t, ,g')"
+ {
+ annna-say -s "${server}" -c "${channel}" "$(gpt-grumpy "${prom…
+ } &
+ ;;
"Santa, "*|"Sannnta, "*|"santa, "*|"sannnta, "*)
personality="santa"
preprompt="$(cat ${modbase}/prompt-agents/${personality}.prompt.txt)"
diff --git a/gpt-grumpy b/gpt-grumpy
@@ -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 "Your are a grumpy old Internet fart. Your sex life always has been misera…
+
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.