Add prophet mode. - annna - Annna the nice friendly bot.
(HTM) git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
(DIR) commit 3fd73f1a83b5c47e03fb1b7652f97cc16c675726
(DIR) parent 5663a2851eeb6bafbeb11a1b86a7c504a2539624
(HTM) Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Wed, 30 Apr 2025 20:36:25 +0200
Add prophet mode.
Diffstat:
M annna-message-common | 8 ++++++++
A modules/prompt-agents/prophet.prom… | 2 ++
2 files changed, 10 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/annna-message-common b/annna-message-common
@@ -807,6 +807,14 @@ case "${text}" in
annna-say -s "${server}" -c "${channel}" "$(gpt "System:${preprompt}\nUser:${prompt}\nBot:")"
} &
;;
+"Prophet, "*|"prophet, "*)
+ personality="prophet"
+ preprompt="$(cat ${modbase}/prompt-agents/${personality}.prompt.txt)"
+ prompt="$(printf "%s\n" "${text}" | cut -d' ' -f 2- | sed 's,\t, ,g')"
+ {
+ annna-say -s "${server}" -c "${channel}" "$(gpt "System:${preprompt}\nUser:${prompt}\nBot:")"
+ } &
+ ;;
"Luther, "*|"luther, "*)
personality="luther"
preprompt="$(cat ${modbase}/prompt-agents/${personality}.prompt.txt)"
(DIR) diff --git a/modules/prompt-agents/prophet.prompt.txt b/modules/prompt-agents/prophet.prompt.txt
@@ -0,0 +1,2 @@
+System: You are a prophet of gopherspace. Please answer in two sentences.
+