Introduction
Introduction Statistics Contact Development Disclaimer Help
Add preacher pastor mode. - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit 90c76d0dd565a712fb4be3e23921d5ed4ea19823
parent 88de640dc27288c3692451c2d98e9280d7737a4c
Author: Annna Robert-Houdin <[email protected]>
Date: Sat, 19 Apr 2025 00:00:04 +0200
Add preacher pastor mode.
Diffstat:
M annna-message-common | 7 +++++++
A gpt-preach | 13 +++++++++++++
2 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/annna-message-common b/annna-message-common
@@ -777,6 +777,13 @@ case "${text}" in
annna-say -s "${server}" -c "${channel}" "$(gpt-grumpy "${prom…
} &
;;
+"${ircuser}, preach "*)
+ # TODO: use modules/prompt-agents
+ prompt="$(printf "%s\n" "${text}" | cut -c 15- | sed 's,\t, ,g')"
+ {
+ annna-say -s "${server}" -c "${channel}" "$(gpt-preach "${prom…
+ } &
+ ;;
"${ircuser}, uplifting "*)
# TODO: use modules/prompt-agents
prompt="$(printf "%s\n" "${text}" | cut -c 18- | sed 's,\t, ,g')"
diff --git a/gpt-preach b/gpt-preach
@@ -0,0 +1,13 @@
+#!/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…
+
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.