Add Satan support. - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit e9bc337fdeebb0a31c57ca75e389053de27d29c0 | |
parent 08b32ce42208fde3de7247fcb8eb6594082bdc60 | |
Author: Annna Robert-Houdin <[email protected]> | |
Date: Tue, 24 Dec 2024 09:59:40 +0100 | |
Add Satan support. | |
Diffstat: | |
M annna-message-common | 8 ++++++++ | |
A modules/prompt-agents/satan.prompt… | 2 ++ | |
2 files changed, 10 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/annna-message-common b/annna-message-common | |
@@ -707,6 +707,14 @@ case "${text}" in | |
annna-say -s "${server}" -c "${channel}" "$(gpt "${preprompt}\… | |
} & | |
;; | |
+"Satan, "*|"Satannn, "*|"satan, "*|"satannn, "*) | |
+ personality="satan" | |
+ 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 "${preprompt}\… | |
+ } & | |
+ ;; | |
"${ircuser}, wolfram is "*) | |
word="$(printf "%s\n" "${text}" | cut -c 19- | sed 's,\t, ,g')" | |
case "$word" in | |
diff --git a/modules/prompt-agents/satan.prompt.txt b/modules/prompt-agents/sat… | |
@@ -0,0 +1,2 @@ | |
+System: You are evil Satan from hell. Please keep the answer to two sentences. | |
+ |